Block Intrusive keys (ALT+TAB, WINkey, etc.)

Blitz3D Forums/Blitz3D Userlibs/Block Intrusive keys (ALT+TAB, WINkey, etc.)

I can't seem to get this to work on my win98SE machine.

I want to block all intrusions to my fullscreen app but using Alt+tab is still taking me back to the desktop.

I tested using your supplied code:
Graphics 640, 480

StopIntrusions = True
vernum$ = GetStickyKeysVersionNumber()

KeyboardGameLock(True)

Repeat
Text 20,0,  "'T' to toggle Keyboard intrusion features on/off ......."
Text 20,60, "Keypressed " + GetKey()
Text 20,100, vernum
Text 20,140, "Keyboard intrusion state is " + StopIntrusions 

Text 20, 300, "try pressing SHIFT 5+ times (... can launch StickyKeys dialog);"
Text 20, 320, "hold down RightSHIFT For 8+ seconds (can launch FilterKeys dialog);"
Text 20, 340, "hold down NUMLOCK for 5+ seconds (can launch ToggleKeys dialog);"
Text 20, 360, "use ALT+TAB, ALT+Esc, CTRL+Esc Or the Win key ... can cause task switching"


If KeyHit(20) Then                 ;  'T' to toggle StopIntrusions 
   StopIntrusions = 1 - StopIntrusions 
   KeyboardGameLock( StopIntrusions )
EndIf	
		  

Flip False
Delay 30
Cls
Until KeyHit(1)
   
KeyboardGameLock(False); ESSENTIAL - Unhook GLOBAL (all apps) filter 


End


Running this code also completely disabled/unloaded StickyKeys so the shortcut no longer worked (even after exiting the program) and the StickyKeys checkbox in Control Panel became unchecked.

Any ideas for us poor win98 users? :)