Detect if window isn't active?
BlitzMax Forums/BlitzMax Beginners Area/Detect if window isn't active?| 
 | ||
| How would I detect when a window stops becoming active by, say, clicking on a different program's window? If GadgetDisabled(window)=True doesn't seem to work. | 
| 
 | ||
| In the Docs, look for "Event Objects"  Event Messages to look at are: EVENT_APPSUSPEND EVENT_APPRESUME     WaitEvent()
    Select EventID()
    Case EVENT_APPSUSPEND
     ' Your app no longer is the active window.
    Case EVENT_APPRESUME
     ' Your app is now the active window.
    End Select-Garrett | 
| 
 | ||
| Ah, thanks. | 
| 
 | ||
| Aha, I've been wondering about this stuff for a while now Very very useful, ty |