PDA

Click to See Complete Forum and Search --> : Keys Not in use in my game - those I select


Arie
Apr 2nd, 2002, 04:02 PM
Hi, Guys!

I have an interesting question to ask you:

I want that with in my game the user can't press some key that
I choose such as the Print Screen key...
How can I cancel it?

If any questions, ask...

Thank you,
Arie.

http://now.at/ariecoolsite

/\/\isanThr0p
Apr 2nd, 2002, 07:26 PM
well if your program in running in exclusive mode in DX that would be no problem. if you are doing something else I think you could archieve the same through subclassing, but than there would be tools like powersnap that could still easily get a screenshot even if you disabled the printscreen button. (I know you didn't say that you wanted to disable screenshots... just figured...)

jim mcnamara
Apr 3rd, 2002, 01:50 PM
KEyboard hook from MSDN:


http://support.microsoft.com/default.aspx?scid=kb;EN-US;q177992

This lets you trap every keystroek and decide whether to pass it on to the system or not.

Arie
Apr 6th, 2002, 01:22 PM
Thanx for helping!

http://now.at/ariecoolsite
Please try it!!
Arie.