bf2forlife Posted April 30, 2008 Posted April 30, 2008 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.
Valuater Posted April 30, 2008 Posted April 30, 2008 This will do the trick.... Located here...http://www.autoitscript.com/forum/index.ph...st&p=1543928)
bf2forlife Posted April 30, 2008 Author Posted April 30, 2008 This will do the trick.... Located here...http://www.autoitscript.com/forum/index.ph...st&p=1543928)But can you post the script? I wanna learn too
James Posted April 30, 2008 Posted April 30, 2008 He posted the link! PixelSearch() MouseMove() Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Valuater Posted April 30, 2008 Posted April 30, 2008 But can you post the script? I wanna learn toojust click the link... all the script is there8)
bf2forlife Posted April 30, 2008 Author Posted April 30, 2008 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?
Valuater Posted April 30, 2008 Posted April 30, 2008 (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 April 30, 2008 by Valuater
bf2forlife Posted April 30, 2008 Author Posted April 30, 2008 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?
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