Disabling the Windows keys

Blitz3D Forums/Blitz3D Programming/Disabling the Windows keys

Murilo(Posted 2005) [#1]
Does anyone know if it's possible to disable the windows keys whilst my game is running? Has anyone already done this?


_PJ_(Posted 2005) [#2]
There was a thread somewhere about changing/maintaining the 'focus' of windows to a particular window.

COmbined with , say,

Graphics 800,600,16,1

While Not MouseDown(1)

If KeyDown(219) Or KeyDown(220) Then

Applyfocus(window)

FlushKeys

Wend

End


should mean that window key interruptions are mostly ignored.


_PJ_(Posted 2005) [#3]
This is it I think

http://www.blitzbasic.com/Community/posts.php?topic=33355


Murilo(Posted 2005) [#4]
Thanks Malice - I'l'l take a look.

FYI, I found this post (thanks to a user on my own forums):

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/gamesforwindows/disablingshortcutkeys.asp