Jump to content

select case problem


Nebieboy
 Share

Recommended Posts

anyone tell me why this select case statement isnt working?

Select

case random(1,2,1)

case 1 ;turn left

Send("{a down}")

Sleep(random(10,1000))

Send("{a up}")

case 2 ;turn right

Send("{d down}")

Sleep(random(10,1000))

Send("{d up}")

Sleep(random(10,15))

EndSelect

as far as i can tell, it should generate a random number between 1 and 2

then if its 1 then send A if its 2 then send D...but its not working :S

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...