Smiley357 Posted July 30, 2008 Share Posted July 30, 2008 Im trying to set a variable as a hotkey, is it possible? If so, can you give a hint on how to do this or a link for me to read? Im trying to make my own hotkey program. I know others have done this but cant seem to find it. Getting tired of reading forms that dont have anything to do with what I want. There are a billion forms that have hotkey in it. Example: Global $test="F2" HotKeySet("{$test}", "_second") While 1 Sleep(10) WEnd Func _second() MsgBox(4096, "test", "second", 10) EndFunc Link to comment Share on other sites More sharing options...
Developers Jos Posted July 30, 2008 Developers Share Posted July 30, 2008 HotKeySet("{" & $test & "}", "_second") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zedna Posted July 30, 2008 Share Posted July 30, 2008 (edited) I think it can be done (not tested)Global $test="F2" HotKeySet("{" & $test & "}", "_second") While 1 Sleep(10) WEnd Func _second() MsgBox(4096, "test", "second", 10) EndFuncEDIT: Jos is winner :-) Edited July 30, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Smiley357 Posted July 30, 2008 Author Share Posted July 30, 2008 LOL very nice. Worked perfectly. Thanks for the help!! Link to comment Share on other sites More sharing options...
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