BotTr Posted February 13, 2004 Share Posted February 13, 2004 Ok i am wondering if it is possible to detect where you are located (x,y) And once that has happened move to a assigned spot (x,y) Any kind of help will be appreciated Thanks Link to comment Share on other sites More sharing options...
CyberSlug Posted February 13, 2004 Share Posted February 13, 2004 $array = MouseGetPos() ; $array[0] is X coord, and $array[1] is Y coord MouseMove( $x, $y) Hope that helps Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
BotTr Posted February 13, 2004 Author Share Posted February 13, 2004 (edited) Thanks that worked great!! A little off topic here but i was wondering how u could loop something but stop the loop at a certain time in its loop Like if it has loop'ed 7 times stop n do something else (type in hello loop it 7 times, end the loop and do something else) I am sorry if this sounds stupid but i am new and i am probably overlooking it somewhere in the help file.. Edited February 13, 2004 by BotTr Link to comment Share on other sites More sharing options...
BotTr Posted February 13, 2004 Author Share Posted February 13, 2004 Its more like mouse movements, it moves fine just doesnt stop using the While function Working on getting it to stop at a certain point thanks for the help tho im sure it will dawn on me Link to comment Share on other sites More sharing options...
CyberSlug Posted February 13, 2004 Share Posted February 13, 2004 $XY = MouseGetPos() $count = 0 While $XY[0] <> 10 And $XY[1] <> 10 Sleep(500) $XY = MouseGetPos() $count = $count + 1 If $count = 10 Then MsgBox(4096,"", "Do something...") Wend Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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