How to disable a Keyboard key

Lelliana

Warper
Member
Joined
Aug 30, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Is was wondering if there is a way or a script that allows me to disable a specific keyboard key like the windows button. (Ex: No matter how many times you presses the windows button it wont go straight to the desktop.)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
Sorry, but no chance. That is a windows function where you as a developer don't have any access, no matter what program you use.

In some windows version the USER can disable that function under the program's compatibility settings, but in newer windows version even that option (needed for very old windows programs) has been removed.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Sorry, but no chance. That is a windows function where you as a developer don't have any access, no matter what program you use.


In some windows version the USER can disable that function under the program's compatibility settings, but in newer windows version even that option (needed for very old windows programs) has been removed.
I didn't read this thoroughly but is this a possible approach


http://stackoverflow.com/questions/3361109/how-can-i-disable-windows-key-in-c
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
I didn't read this thoroughly but is this a possible approach

http://stackoverflow.com/questions/3361109/how-can-i-disable-windows-key-in-c
I wouldn't go that way unless you really know what you're doing.

That approach edits the windows registry to disable the key, and needs another registry edit to enable it again - and a comment in it warns that the user might need to restart windows before the key functions again...

I don't know if ruby even allows for editing the registry (which would break the sandbox of the program) or if you need to access other parts of the Window API to get that done.

Not to say that many scripters probably don't know enough of the registry structure to be able to work with these commands without risking a complete breakdown of the system...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top