RandomGuest Posted September 7, 2007 Posted September 7, 2007 How can I make a hotkey...like when im Pushing A it will start a piece of script, not just like togglepause, is this possible, how?
ssubirias3 Posted September 7, 2007 Posted September 7, 2007 Search on the keyword "hotkey" within the Help file that came with AutoIt and see if that gives you any ideas.
PsaltyDS Posted September 8, 2007 Posted September 8, 2007 ...more particularly the demo script in the help file under HotKeySet(). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Paulie Posted September 8, 2007 Posted September 8, 2007 (edited) not just like togglepause This implys to me that you have already read the help. HotKeySet can be used to bind most any key to any function. Here is an example. Hotkeyset("a", "RandomFunc") ; Binds hotkey "a" to a function titled "RandomFunc" While 1; \ Sleep(100);-Give the script something to do while it waits for a hotkey Wend; / Func RandomFunc() ; declares the "RandomFunc" function ;Whatever you want to do when hotkey is pressed goes here: Msgbox(0,"Hello","Hello from your function!!!"&@CRLF&'You Just Pressed "'&@Hotkeypressed&'"') EndFunc Edited September 8, 2007 by Paulie
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