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).
Repeat
Delay(5)
IsScreenActive=IsScreenActive()
If IsScreenActive=0
ReleaseMouse(1)
EndIf
Until IsScreenActive=1
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?
The truth is never confined to a single number - especially scientific truth!
Okay. Now the Alt+Tab switching works. No. It doesn't work but at least it does no longer cause a crash. Instead, all sprite masking informations (TransparentSpriteColor()) become lost. Why? What am i doing wrong now?