Jamie1414 Posted April 15, 2006 Share Posted April 15, 2006 I am trying to make my program do something over and over and it was working fine so far but when i re-opened it it was missing the exact cords, even though the cordinates didn't change but the position of where the mouse moved changed. can some1 help me plz? btw here is what kind of code im using for it... MouseMove(394,274) MouseDown("left") MouseUp("left") Sleep(1000) Link to comment Share on other sites More sharing options...
greenmachine Posted April 15, 2006 Share Posted April 15, 2006 (edited) Well I can't exactly tell what you're saying, but I know that as long as you're using the same mouse coord mode with the same resolution monitor, it should stay the same. Also, your script can be simplified to this: MouseClick ("left", 394, 274) Sleep (1000) If you want it in a loop, here's an infinite loop: While 1 MouseClick ("left", 394, 274) Sleep (1000) WEnd Edited April 15, 2006 by greenmachine Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 15, 2006 Moderators Share Posted April 15, 2006 You may want to take a look at Opt('MouseCoordMode') in the help file. 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...
herewasplato Posted April 15, 2006 Share Posted April 15, 2006 Also look at WinWaitActive....... [size="1"][font="Arial"].[u].[/u][/font][/size] 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