Alt+Tab switching
Posted: Fri Feb 27, 2004 8:59 pm
Hi @ll
I am coding a little strategy game (not important).
Now i'm trying to get the Alt+Tab switching to work. I have a little condition at the end of my code which puts the whole programme into a wait-loop if the screen is minimized. But it doesn't work properly (yes, i wrote the code AFTER the FlipBuffers() command).
The programme crashes (Crtl+Alt+Del says the programme does not respond anymore) and when i click the programmes icon in the taskbar nothing happens. Any idea why?
I am coding a little strategy game (not important).
Now i'm trying to get the Alt+Tab switching to work. I have a little condition at the end of my code which puts the whole programme into a wait-loop if the screen is minimized. But it doesn't work properly (yes, i wrote the code AFTER the FlipBuffers() command).
Code: Select all
Repeat
Delay(5)
IsScreenActive=IsScreenActive()
If IsScreenActive=0
ReleaseMouse(1)
EndIf
Until IsScreenActive=1