Nebieboy Posted December 16, 2006 Share Posted December 16, 2006 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 2then if its 1 then send A if its 2 then send D...but its not working :S Link to comment Share on other sites More sharing options...
Nebieboy Posted December 16, 2006 Author Share Posted December 16, 2006 LOL, sorry folks i was thinking of VB!! thats why it wasnt working read the help again and it cleared things up sory Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now