Misha Posted March 14, 2007 Share Posted March 14, 2007 (edited) while 1 $MousePos = MouseGetPos() MouseMove($MousePos[0]+1,$MousePos[1]) MouseClick("Right") MouseMove($MousePos[0]-1,$MousePos[1]) wend This evnetually moves left, why... Edited March 14, 2007 by Misha Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 14, 2007 Moderators Share Posted March 14, 2007 $MousePos[0]-1 = move left from last MousePos ($MousePos = MouseGetPos()) recorded 1 pixel. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Misha Posted March 14, 2007 Author Share Posted March 14, 2007 yea but MouseMove($MousePos[0]+1,$MousePos[1]) it moves forward...and then MouseMove($MousePos[0]-1,$MousePos[1]) moves it back.. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 14, 2007 Moderators Share Posted March 14, 2007 yea but MouseMove($MousePos[0]+1,$MousePos[1]) it moves forward...and then MouseMove($MousePos[0]-1,$MousePos[1]) moves it back..Are you not seeing what I'm saying? You don't get the mouse position after you move it to the right 1 you only get it once... So this is how yours goes 1. Get current position, lets say it is 500, 500 2. Move Right 1 pixel From 500, 500 to 501, 500 3. Move Left 1 pixel From 500, 500 to 499, 500 You have to tell it what to do, it doesn't make guesses . Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Misha Posted March 14, 2007 Author Share Posted March 14, 2007 Oh........................................yea you are right thanks alot ^^ 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