Jump to content

Recommended Posts

Posted

this?

$Cpos = PixelSearch($left, $top, $right, $bottom, $data[$t], $Vary, $Skip)
         Until Not @error
         If $t > 10 Then ContinueLoop
         MouseClick("left", $Cpos[0], $Cpos[1], 1, 0)
         Sleep(1000)

But how i can set it search for diffrent color than the first 1, after the first color is found? And not like rapidly pressing around the color, just keep it still on that place where it clicked on first?

Posted (edited)

as JamesB said, you are probably better-off with..

PixelSearch()

MouseMove()

See the help files on these

You can also search these forums for PixelSearch(), there are thousands of examples

8)

Edited by Valuater

NEWHeader1.png

Posted

But what about this. When there is brown in certain color in the screen, then mousemove somewhere? Like could u run that PixelSearch() MouseMove() script then when there is brown in that certain place the script stops and moves mouse to somewhere?

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
  • Recently Browsing   0 members

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