Ok Im working on what would be considered a simple script but for the life of me I cannot figure out why I keep getting errors.
I have tried everyway I can think of to resolve them and now I turn to you all for assistance.
This is the errorI get from the 2 below
ERROR: syntax error
Global $Location[1.1] = (
This is what Im working on so far
Global $Clientwidth = 1158
Global $Clientheight = 892
Global $pause = 0
Global $Mousespeed = 0
Global $Location[1.1] = 100, 378
Global $Location[1.2] = 100, 397
Global $Location[2.1] = 100, 416
Global $Location[2.2] = 100, 435
Global $Location[3.1] = 100, 455
Global $Location[3.2] = 100, 473
Global $Location[4.1] = 100, 493
Global $Location[4.2] = 100, 512
Global $Location[5.1] = 100, 531
Global $Location[5.2] = 100, 550
Global $Pixel = 0x050505
I have tried it like this and like below
Global $Clientwidth = 1158
Global $Clientheight = 892
Global $pause = 0
Global $Mousespeed = 0
Global $Location[1.1] = (100, 378)
Global $Location[1.2] = (100, 397)
Global $Location[2.1] = (100, 416)
Global $Location[2.2] = (100, 435)
Global $Location[3.1] = (100, 455)
Global $Location[3.2] = (100, 473)
Global $Location[4.1] = (100, 493)
Global $Location[4.2] = (100, 512)
Global $Location[5.1] = (100, 531)
Global $Location[5.2] = (100, 550)
Global $Pixel = 0x050505
Also I have been working on a Pause / Terminate function that works just fine on one script that I wrote but will not work on another script even though I copied and pasted it.
HotKeySet("{Pause}", "Pause")
HotKeySet("{Esc}", "Terminate")
I think Im doing it correctly but I keep getting an error ERROR: Terminate(): undefined function.
HotKeySet("{Esc}", "Terminate") and ERROR: Pause(): undefined function.
HotKeySet("{Pause}", "Pause")
Func Pause()
TrayTip("PAUSE", "The Script Has Been Paused", 3)
If $pause = 1 Then
$pause = 0
Else
$pause = 1
EndIf
EndFunc ;==>Pause
Func Terminate()
Exit 0
EndFunc ;==>Terminate