Jump to content
Sign in to follow this  
bf2forlife

This is about color...

Recommended Posts

bf2forlife

So i want this script to search for a color, then click it, and when the color dissapiers under ur mouse, then search for diffrent color.

Share this post


Link to post
Share on other sites
Valuater

But can you post the script? I wanna learn too

just click the link... all the script is there

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
bf2forlife

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?

Share this post


Link to post
Share on other sites
Valuater

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

Share this post


Link to post
Share on other sites
bf2forlife

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?

Share this post


Link to post
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
Sign in to follow this  

×