AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Disable a key without my script running?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Python789
Guest





PostPosted: Fri Jan 29, 2010 11:08 am    Post subject: Disable a key without my script running? Reply with quote

Hi,

Is there any way I can disable a key, and then have my script exit, leaving the key still disabled?

Thanks!
Back to top
Guest






PostPosted: Fri Jan 29, 2010 6:52 pm    Post subject: Reply with quote

no
ahk doesnt really disable keys, it blocks them
so what it means is, when u type something, the keyboard still send the keystroke code to the OS, but then ur script will intercept it and make it does nothing to the active application u are on
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Jan 29, 2010 10:40 pm    Post subject: Reply with quote

it may be possible if you have registry write access. I'm fairly sure there is a way that you can block a key with a registry entry.

then you can write a script the writes the entry to the registry and exits.
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group