Jump to content
Sign in to follow this  
lopolop

Switch Case

Recommended Posts

lopolop

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

Share this post


Link to post
Share on other sites
lopolop

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

Share this post


Link to post
Share on other sites
lopolop

o the sleep(0) was just to put in place because i aint done with the code once i fix this problem and i am using scite


Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
lopolop

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


Share this post


Link to post
Share on other sites
jpm

as it is just a support question I move it o support forum B)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.