kev51773 Posted September 9, 2012 Posted September 9, 2012 Does anyone know of a way to set a hotkey for multiple keys (or maybe even all keys) rather than writing a separate hotkeyset for every key? Thanks in advance.
JScript Posted September 9, 2012 Posted September 9, 2012 Hi! Try this example: ; #### by JScript - 09/09/2012 #### _HotKeySetEx("{ESC}", "_Exit") _HotKeySetEx("{F1}|{F2}|{F3}|{F4}", "_Example") While 1 Sleep(100) WEnd Func _Example() MsgBox(4096, "Example", "Multiple hotkeys set") EndFunc Func _HotKeySetEx($sKeys, $sFunction) Local $asSplit $asSplit = StringSplit($sKeys, "|") If @error Then Return HotKeySet($sKeys, $sFunction) EndIf For $i = 1 To $asSplit[0] HotKeySet($asSplit[$i], $sFunction) Next Return 1 EndFunc Func _Exit() Exit EndFunc Regards, João Carlos. http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
kev51773 Posted September 10, 2012 Author Posted September 10, 2012 (edited) Thanks, it's been a while since I worked with AutoIT and that prompted me to think in this direction... Edit: Should point out, that's not nearly as nefarious as it looks lol Edited September 12, 2012 by Jon Example removed.
Administrators Jon Posted September 12, 2012 Administrators Posted September 12, 2012 Example removed. Please don't post keylogger basics. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now