Sign in to follow this  
Followers 0
Gilzar

Need help with my color finding/clicking script not working the way i want it to

3 posts in this topic

ok so basically i want it to click the color (button) once it pops up my script works fine up until this (its is mostly moce n click this is about the most complex part as of yet)

here is what i got so far

$coord = PixelSearch(0, 0, 782, 464, 0x5893DA )

If Not @error Then

MouseClick("left")

EndIf

it might be nooby cuz im a noob so please give me advice if u have any i also found one from google that might work but idk here it is

While 1 = 1

$coord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x282723)

If Not @error Then

MouseClick("left", $coord[0], $coord[1], 1, 1)

EndIf

$coord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x282723)

If Not @error Then

MouseClick("left", $coord[0], $coord[1], 1, 1)

EndIf

WEnd

Share this post


Link to post
Share on other sites



may have what you want.

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

ok well this is just a very basic login script just move click move click but in the middle i have the pixelsearch to find and click on a menu that pops up (team ready, play now/wait) and i want to to click the play now and then keep moving and clicking but for some reason when i try it out it looks like it doesnt even do the action cuz it just goes from on to the pixelsearch and then without wating goes into the next set of moving and clicking which is for the menu that comes after i click the play now can ya help me?

here is the script:

MouseMove(683,42)
MouseClick("Left")
Sleep(2000)
MouseMove(737,146)
MouseClick("Left")
Sleep(2000)
MouseMove(918,150)
MouseClick("Left")
Sleep(2000)
MouseMove(793,682)
MouseClick("Left")
 
Do
$coord = PixelSearch(157, 98, 225, 146, 0x5893DA, 0, 1, "")
   $diff = TimerDiff(100000)
Until IsArray($coord) Or $diff > 10000
MouseClick("Left")

sleep(2000)
MouseMove(766,459)
MouseClick("Left")
MouseMove(649,197)
MouseClick("Left")
MouseMove(864,491)
MouseClick("Left")

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  
Followers 0