AutoHotkey Community

It is currently May 26th, 2012, 10:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: August 14th, 2008, 2:27 am 
Offline

Joined: August 2nd, 2008, 4:14 pm
Posts: 56
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 14th, 2008, 6:22 am 
Offline

Joined: April 10th, 2008, 10:08 pm
Posts: 111
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. ;~}


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, BrandonHotkey, Google [Bot], iBob35555VR, oldbrother, Tilter_of_Windmills and 65 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group