Jump to content

PixelSearch then some...


Recommended Posts

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 by hlstriker
Link to comment
Share on other sites

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 by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

$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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...