Jump to content

Recommended Posts

Posted

Global $Paused

HotKeySet("{PAUSE}", "TogglePause")

HotKeySet("{ESC}", "Terminate")

HotKeySet("{HOME}", "Start") ;Home Key

While

MouseClick("right" 0, 586, 123)

MouseClick("left" 0, 585, 162)

MouseClick("right" 0, 667, 180)

MouseClick("left" 0, 648, 237)

MouseClick("left" 0, 831, 62)

MouseClick("left" 0, 913, 254)

MouseClick("left" 0, 956, 255)

MouseClick("right" 0, 603, 440)

MouseClick("left" 0, 587, 506)

Sleep (2000)

Send ("27")

Send ("{ENTER}")

MouseClick("right" 0, 586, 123)

MouseClick("left" 0, 585, 162)

MouseClick("right" 0, 956, 255)

MouseClick("left" 0, 936, 329)

WEnd

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

ToolTip('Script is "Paused"',0,0)

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

  • Developers
Posted (edited)

Its not very polite to "DUMP"a script without asking a questions assuming we will run it and sort out your unknown function problem..

Run au3check on your script and look at the list of errors it generates and fix them one at a time .. :P

Edited by Jos

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.
  :)

  • Moderators
Posted

Line 4, you're setting a hotkey to a nonexistant function.

Teach a man to fish...

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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
×
×
  • Create New...