Abaddon Posted December 14, 2006 Posted December 14, 2006 Is there any way that I can set a hot key to start my script? That would save alot of time thank you.
Googler24022 Posted December 14, 2006 Posted December 14, 2006 (edited) Have a look at this and see if you get any ideas from it.autoitscript.com/autoit3/docs/f...s/HotKeySet.htm Edited January 29, 2012 by Googler24022
Abaddon Posted December 14, 2006 Author Posted December 14, 2006 (edited) Sorry, all I got from that was how to end a script via hot key. I am a noob, I was just looking for a simple thing like, ctr+alt+s to start the script. Oh and dethredic Im sorry i wasn't more specific. Here is what I want. To start the script and enter the game. Then when they want the script to start running press a key. Thanks Edited December 14, 2006 by Abaddon
dandymcgee Posted December 14, 2006 Posted December 14, 2006 (edited) EDIT: Just read your edit. HotKeySet is what you are looking for. Example just for informational purposes: ;set the hotkey HotKeySet("{Enter}", "Start") ;activate the game window WinActivate("Title of window") ;wait for the hotkey to be pressed While 1 Sleep(100) WEnd ;take this action when the hotkey is pressed Func Start() MouseMove(500, 500, 2) EndFunc Something similar to this should do what you are looking for. Edited December 14, 2006 by dandymcgee - Dan [Website]
Paulie Posted December 14, 2006 Posted December 14, 2006 (edited) If you don't want your script to be running, there obviously is no way for it to interpret the hotkey. So the only way to do what i think you are asking (Correct me If I'm Wrong) is to have 2 scripts. one containing something like this, HotkeySet("{HOME}", "Go") While 1 Sleep(3000) WEnd Func go() Run("*Your Script*"); see run helpfile for proper syntax EndFunc and then have your script in a separate file. Edited December 14, 2006 by Paulie
Abaddon Posted December 14, 2006 Author Posted December 14, 2006 Thanks guys. I just needed a hot key because I am going to be distributing this over the net and didn't want people to have to set shorcuts
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