hugh3sy Posted December 16, 2007 Posted December 16, 2007 Hey Guyz if can some1 help me with a script. I want it to be able to stop and start and only work in an active window. WinWaitActive("SwgClient","") HotkeyBind (sorry forgot what the hotkey command was) ("{F10}, Start) Hotkeybind ("{f11}", Stop) Func Start() While 1 send("{ins down}") Wend EndFunc Func Stop() Exit EndFunc Also does any1 know why my caps button would go on and off as i run a Auto it script? I run vista does any1 know why?
hugh3sy Posted December 16, 2007 Author Posted December 16, 2007 Hey Guyz if can some1 help me with a script. I want it to be able to stop and start and only work in an active window.WinWaitActive("SwgClient","")HotkeyBind (sorry forgot what the hotkey command was) ("{F10}, Start)Hotkeybind ("{f11}", Stop)Func Start() While 1 send("{ins down}") Wend EndFuncFunc Stop() ExitEndFuncAlso does any1 know why my caps button would go on and off as i run a Auto it script? I run vista does any1 know why?can any1 help?
PsaltyDS Posted December 16, 2007 Posted December 16, 2007 Hey Guyz if can some1 help me with a script. I want it to be able to stop and start and only work in an active window.WinWaitActive("SwgClient","")HotkeyBind (sorry forgot what the hotkey command was) ("{F10}, Start)Hotkeybind ("{f11}", Stop)Func Start() While 1 send("{ins down}") Wend EndFuncFunc Stop() ExitEndFuncAlso does any1 know why my caps button would go on and off as i run a Auto it script? I run vista does any1 know why?Not even looking up HotKeySet() in the help file makes people wary of spending any time on your topic. Once your While/WEnd loop inside the Start() function is running there is no test inside the loop for the desired window being active. Make your action conditional inside the loop with: IF WinActive("SwgClient") Then 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
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