Jump to content
Sign in to follow this  

select case problem

Recommended Posts

anyone tell me why this select case statement isnt working?


case random(1,2,1)

case 1 ;turn left

Send("{a down}")


Send("{a up}")

case 2 ;turn right

Send("{d down}")


Send("{d up}")



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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...