Jump to content

Recommended Posts

Posted (edited)

I have tryed to use Switch Case for beta. When i Use it, it thinks when i have case, iam trying to do Select case and not switch and gives a error, "Case" statement with no matching "Select" statement.:Case 0. even if i open the switch case help file it still gives the same error when i try to run it...

any help would be great

Edited by lopolop
Posted

o sorry about that

While 1
MouseMove( 236 , 470 )
Sleep(3500)

$var = PixelGetColor( 236 , 470 )
If $var = 5985882 Then
Switch Random(0, 5, 1)
  Case 0
      $x = 423
      $y = 564
  Case 1
      $x = 463
      $y = 534
  Case 2
      $x = 433
      $y = 502
  Case 3
      $x = 423
      $y = 564
  Case 4
      $x = 420
      $y = 580
  Case 5
      $x = 330
      $y = 220
  EndSwitch
  MouseClick("left",$x,$y)
Else
Sleep(0)
EndIf
WEnd
  • Developers
Posted (edited)

Please read the Sticky at the top of the BUG forum before posting supposed BUG reports or if you have support questions Post in the Support forum.

You have not posted any script that shows the supposed BUG....

I assume you are using the Beta version right ?

Edited by JdeB

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

Posted

yes i said at the top i am using beta...

and when i put this code in scite it says at the run thing at the bottom that

"Case" statement with no matching "Select" statement.:Case 0

when i am not using select....

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