QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: MasterGy on December 06, 2020, 03:50:36 am
-
Hi ! What do I need to read to find out if the window is active? Is the program running, but how do I know it is in the background, or you have put it on the taskbar, or you are using that window?
-
Hi. Try this:
-
I forgot one very important function!
IF hasFocus%%
THEN PRINT "This window is active " ELSE PRINT "This window is not active" 'click to other window for test (have 2 different program windows on screen and click there)
-
thank you very much, that's exactly what i needed!
-
And if you wan to know more about other windows open/closed/min/max
https://ritchielawrence.github.io/cmdow/
Please red the very first line at the website. If you decide to use cmdow, it maybe required to ignore win's security warning and accept it.