Sardith Posted January 22, 2006 Share Posted January 22, 2006 I need some help with a mouse bot. What I d like it to do is move the mouse down at a certin rate. When the left mouse button is clicked then it moves the mouse down. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
BigDod Posted January 22, 2006 Share Posted January 22, 2006 I need some help with a mouse bot. What I d like it to do is move the mouse down at a certin rate. When the left mouse button is clicked then it moves the mouse down.You need to look at _ispressed and MouseMove in the help files. For _IsPressed you will need to use the Beta version of AutoIt. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Sardith Posted January 22, 2006 Author Share Posted January 22, 2006 Ok thanks, is there any way to make the mouse move at a speed? Like 1-10? [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
greenmachine Posted January 22, 2006 Share Posted January 22, 2006 MouseMove (from the help file): Moves the mouse pointer. MouseMove ( x, y [, speed] ) Parameters x The screen x coordinate to move the mouse to. y The screen y coordinate to move the mouse to. speed [optional] the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 22, 2006 Moderators Share Posted January 22, 2006 (edited) Errr... have you looked at the help file under MouseClick()? Edit... Dammit Green!! ... Looks like we are doing this again... I'm going back to work then! Edited January 22, 2006 by SmOke_N 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...
Sardith Posted January 22, 2006 Author Share Posted January 22, 2006 One other question, I want it to move down and only down. So would I leave the y- coor. blank or? [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 22, 2006 Moderators Share Posted January 22, 2006 You have to give each cooridnate for each click or mousemove: Here run this so you can get an idea: For $i = 1 To 300 Step 2 MouseMove(100, $i, 0) Next For $x = 100 To 300 Step 2 MouseMove($x, $i, 0) Next For $c = $i To 1 Step - 2 MouseMove($x, $c, 0) Next For $j = $x To 100 Step - 2 MouseMove($j, $c, 0) Next 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...
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