 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
metacumbia
Joined: 02 Aug 2008 Posts: 56
|
Posted: Thu Aug 14, 2008 1:27 am Post subject: simple noob question with hotkeys |
|
|
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 |
|
 |
Red Hat Boy
Joined: 10 Apr 2008 Posts: 111
|
Posted: Thu Aug 14, 2008 5:22 am Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|