dmbech Posted March 26, 2004 Share Posted March 26, 2004 Can anyone think of a better way to move the mouse over a specified area on the screen? Currently I use a couple of nested For...Next loops to step through the area but it is very slow. Would like to speed up the process. Any ideas? TIA For $y=300 to 400 Step 10 For $x=225 to 250 Step 5 MouseMove($x,$y,3) Next Next Ideally what I'd like to see is the mouse starting in the middle of the area and circle outward to the edges of the area. Is that possible? Maybe I just ain't thinking hard enough... Link to comment Share on other sites More sharing options...
Developers Jos Posted March 26, 2004 Developers Share Posted March 26, 2004 what if you change it to MouseMove($x,$y,1) or MouseMove($x,$y,0)?? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
dmbech Posted March 26, 2004 Author Share Posted March 26, 2004 Yea, that would certain make the cursor move from one point to the next faster but overal was looking for a faster way rather than nested For...Next loops to move the cursor over a given area or some kinda circular algorithm/search pattern vice a stepped approach. Link to comment Share on other sites More sharing options...
scriptkitty Posted March 26, 2004 Share Posted March 26, 2004 I doubt faster, but if I remember my old math, this might work $x1=300; center or circle x $y1=300; center or circle y For $r=1 To 100 Step 10 For $x=-$r To $r $y=int(Sqrt((($r*$r)-($x*$x)))) tooltip($x&","&$y,$x+$x1,$y+$y1) Next For $x=$r To -$r Step -1 $y=-int(Sqrt((($r*$r)-($x*$x)))) tooltip($x&","&$y,$x+$x1,$y+$y1) Next Next It is cool to watch anyhow AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Helge Posted March 27, 2004 Share Posted March 27, 2004 It is cool to watch anyhow Hehe !Actually it was... 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