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 

simple noob question with hotkeys

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



Joined: 02 Aug 2008
Posts: 56

PostPosted: Thu Aug 14, 2008 1:27 am    Post subject: simple noob question with hotkeys Reply with quote

hello guys..

how can i suspend all numepad keys with hotkey?

here is my code
Code:
HotKey, ... , off
F3::hotkey, I DONT KNOW , toggle

~Numpad0::send,         asd
~NumpadDot::Send,     asd
~Numpad1::Send,        asd
~Numpad2::Send,        asd
~Numpad3::Send,        asd
~Numpad4::Send,        asd
~Numpad5::Send,        asd
~Numpad6::send,        asd
~Numpad7::Send,       asd
~Numpad8::Send,       asd
~NumPad9::Send,       asd



thax, byebye
Back to top
View user's profile Send private message
Red Hat Boy



Joined: 10 Apr 2008
Posts: 111

PostPosted: Thu Aug 14, 2008 5:22 am    Post subject: Reply with quote

There's an easy way to suspend ALL hotkeys, but I don't think that's what you're asking for...
Try this:
Code:
HotKeyList := "~Numpad0|~NumpadDot|~Numpad1|~Numpad2|~Numpad3|~Numpad4|~Numpad5|~Numpad6|~Numpad7|~Numpad8|~Numpad9"

Loop, Parse, HotKeyList, |
{
Key%A_Index% = %A_LoopField%
}

F3::
loop
{
ThisHotkey := Key%A_Index%
if !ThisHotkey
   break
hotkey, %ThisHotkey% , toggle
}
return

~Numpad0::send,         asd
~NumpadDot::Send,     asd
~Numpad1::Send,        asd
~Numpad2::Send,        asd
~Numpad3::Send,        asd
~Numpad4::Send,        asd
~Numpad5::Send,        asd
~Numpad6::send,        asd
~Numpad7::Send,       asd
~Numpad8::Send,       asd
~NumPad9::Send,       asd

_________________
I slit the sheet, the sheet I slit,
and on the slitted sheet I sit. ;~}
Back to top
View user's profile Send private message Send e-mail
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