Compiler Error Line 6, Semicolon expected
(line 4)If (GetColor(432,347) = 254) Then
(line 5)ClickMouse(952, 91, True) Else
(line 6)ClickMouse(432, 347, True) Then
Compiler Error Line 6, Semicolon expected
(line 4)If (GetColor(432,347) = 254) Then
(line 5)ClickMouse(952, 91, True) Else
(line 6)ClickMouse(432, 347, True) Then
You posted in the very wrong section and you double-posted as well, which is wrong in nearly all cases. In the future, please use the Scripting Help forum or something that has scripting and help mentioned somewhere in it and use the Edit button rather than making two posts in a row.
Your error is because you have "ClickMouse() then" when you don't need a then, just a semi-colon.
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
Either delete the then or add an if to the second error.
ClickMouse isn't a function that returns a Boolean function, so you can't use it as the "argument" for an if...then
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
Simba Code:If (GetColor(432, 347) = 254) Then //if the colour at point 432, 347 is 254 then
ClickMouse(952, 91, True) //do this
Else //otherwise
ClickMouse(432, 347, True); //do this
//Rest of script goes here...
There are currently 1 users browsing this thread. (0 members and 1 guests)