hefty Posted April 5, 2006 Share Posted April 5, 2006 I have alot of mouse clicks too leave the town in my game. Perhaps there is a shorter way then adding them one by one? WinActivate( "Guild Wars" ) MouseWheel ( "down" ) sleep(1000) MouseWheel ( "down" ) sleep(1000) MouseWheel ( "down" ) sleep(1000) MouseWheel ( "down" ) sleep(1000) MouseWheel ( "down" ) sleep(1000) MouseClick ( "left", 388, 489, 1, 80 ) sleep(1000) MouseClick ( "left", 388, 489, 1, 80 ) sleep(1000) MouseClick ( "left", 388, 489, 1, 80 ) sleep(1000) MouseClick ( "left", 388, 489, 1, 80 ) sleep(1000) MouseClick ( "left", 388, 489, 1, 80 ) sleep(1000) MouseClick ( "left", 388, 489, 1, 80 ) sleep(1000) MouseClick ( "left", 388, 489, 1, 80 ) sleep(1000) MouseClick ( "left", 388, 489, 1, 80 ) sleep(9000) MouseClick ( "left", 764, 241, 1, 2 ) sleep(3000) MouseClick ( "left", 501, 417, 1, 2 ) sleep(3000) MouseClick ( "left", 501, 417, 1, 2 ) sleep(3000) MouseClick ( "left", 501, 417, 1, 2 ) sleep(3000) MouseClick ( "left", 501, 417, 1, 2 ) Link to comment Share on other sites More sharing options...
greenmachine Posted April 5, 2006 Share Posted April 5, 2006 For loops are your friend. WinActivate( "Guild Wars" ) For $i = 1 to 5 MouseWheel ( "down" ) sleep(1000) Next For $i = 1 to 8 MouseClick ( "left", 388, 489, 1, 80 ) sleep(1000) Next Sleep (8000); remainder MouseClick ( "left", 764, 241, 1, 2 ) sleep(3000) For $i = 1 to 3 MouseClick ( "left", 501, 417, 1, 2 ) sleep(3000) Next MouseClick ( "left", 501, 417, 1, 2 ); this one didn't have a sleep after it, so it's outside. 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