Jump to content
Sign in to follow this  
hugh3sy

An Active window script

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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?

can any1 help?

Share this post


Link to post
Share on other sites

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?

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...