Check for focus
Blitz3D Forums/Blitz3D Programming/Check for focus
| ||
Anyone have a way to check if a B3D .exe loses focus in windows (i.e alt-tabbed out of) as it's messing up my render tweening. Trouble is, B3D programs go idle in the task bar, so it has to somehow know the difference between a difference in millisecs (used by tweening) and an actual loss of focus. Ditching tweening is not an option, as this needs to be fixed asap, neither is checking for alt+tab keypresses as this doesn't happen when the user clicks the program in the taskbar. |
| ||
use the user32 call to GetFocus to check whether your program has the focus |