kana Posted August 9, 2010 Posted August 9, 2010 How do you make it so a HotkeySet would run a different function?
seandisanti Posted August 9, 2010 Posted August 9, 2010 How do you make it so a HotkeySet would run a different function?you specify what function you want it to run as the second parameter in the function call; if you mean you want to re-use it, then just unassign it first by calling hotkeyset(key,"") then reassign
AdmiralAlkex Posted August 10, 2010 Posted August 10, 2010 You don't have to remove the old hotkey, you can just set directly: HotKeySet("a", "_a") While 1 Sleep(10) WEnd Func _a() MsgBox(0, "", "A") HotKeySet("a", "_b") EndFunc Func _b() MsgBox(0, "", "B") EndFunc .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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