Pharon Posted October 23, 2004 Posted October 23, 2004 HotKeySet("1", "Func1") HotKeySet("2", "Func2") HotKeySet("3", "Func3") HotKeySet("4", "Func4") HotKeySet("=", "Exit") Whenever I try to add multiple HotKeys liks above, none of them the code works anymore, is there a a reason for this or would it be that they are working but my code in the functions isn't?
ezzetabi Posted October 24, 2004 Posted October 24, 2004 (edited) Strange answer Larry. Yourself made the solution for this... How to set an hotkey on the key '0';In the first 10 second pressing the key 0 (not in the numpad) will show a msgbox AdlibEnable ('_test',50) Sleep(10000) Exit Func _Test() $aState = DLLCall("user32","int","GetAsyncKeyState","int",0x30) If $aState[0] = -32767 Then _FunctionToCall() EndIf EndFunc Func _FunctionToCall() MsgBox(0,'','Wow, it works!') EndFuncThe original Larry code is here, check it out. Edited October 24, 2004 by ezzetabi
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