hlstriker Posted May 22, 2005 Share Posted May 22, 2005 (edited) I have a PixelSearch finding a certain pixel then right clicking. Now I want the mouse to stay in that spot and just move down about 20 pixels from the spot the color was found at, then left click. Is this possible? If I worded this weird here is what I want in steps... 1.) Search for a pixel and right click. 2.) From the spot it right clicked, move down 20 pixels and left click. Really that's about it Thanks. Edited May 22, 2005 by hlstriker The best Honda forums!RuneScape High Alching for Profit! Link to comment Share on other sites More sharing options...
herewasplato Posted May 22, 2005 Share Posted May 22, 2005 (edited) I have a PixelSearch finding a certain pixel then right clicking. Now I want the mouse to stay in that spot and just move down about 20 pixels from the spot the color was found at, then left click. Is this possible?If I worded this weird here is what I want in steps...1.) Search for a pixel and right click.2.) From the spot it right clicked, move down 20 pixels and left click.Really that's about it Thanks.<{POST_SNAPBACK}>Steal/modify Burrup's post from last night:http://www.autoitscript.com/forum/index.ph...t=0entry81166$Coord = PixelSearch(left, top, right, bottom,1234567[, shade-variation] [, step]] ) If Not @error Then MouseClick ( "Right" , $Coord[0], $Coord[1] , 1 , speed ) If Not @error Then MouseClick ( "Left" , $Coord[0], ($Coord[1] + 20), 1 , speed )I'm not where I can test this - you fill in the blanks and test it :-) Edited May 22, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
w0uter Posted May 22, 2005 Share Posted May 22, 2005 $Coord = PixelSearch(left, top, right, bottom,1234567[, shade-variation] [, step]] ) If Not @error Then MouseClick ( "Right" , $Coord[0], $Coord[1] , 1 , speed ) MouseClick ( "Left" , $Coord[0], ($Coord[1] + 20), 1 , speed ) EndIf is the way it is suppose to be. since @error gets cleared after the 1st click. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
herewasplato Posted May 23, 2005 Share Posted May 23, 2005 Thanks. It was stupid of me the have the two ifs anyway. Too much copy/paste and not enough thinking. [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