Sign in to follow this  
Followers 0
Xav

Hummm If get color Do...

6 posts in this topic

this is my script...

How can i do like if it get a color it will stop send f9 but if it dont get continu to move like that ==MouseClick("right" ,798, 103 ,1 ,0)==

Thanks to try :P

:D

Send("w")
Sleep(400)
Send("j")
MouseClick("RIGHT")
Sleep(700)
Send("k")
MouseClick("RIGHT")
Sleep(800)
Send("w")
Sleep(400)
Send("{f6}")
MouseClick("RIGHT")
Sleep(1000)
Send("{ALTDOWN}")
Send("{f1}")
MouseClick("right" ,657, 66 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,798, 103 ,1 ,0)
Sleep(390)
MouseClick("right" ,706, 184 ,1 ,0)
Sleep(390)
MouseClick("right" ,797, 47 ,1 ,0)
Sleep(390)
MouseClick("right" ,683, 81 ,1 ,0)
Sleep(390)
MouseClick("right" ,778, 74 ,1 ,0)
Sleep(390)


Send("{AltUp}")
Sleep(375)
Send("{f9}")
MouseClick("Right")



send("{ALTUP}")

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

i think i just found it's something like that?-but it wont break the first script idk how to make this stopin :S

While 1
    Sleep (1)
    WEnd

    While 1
$Coord = PixelSearch( 16, 499, 328, 517, 0x008400 )

If @error Then
     Sleep(1)
    
EndIf
MouseClick("LEFT"); i think here it go 
    Wend
EndIf

Exit
EndFunc
Edited by Xav

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

That was a very poor attempt to bump your less than 24 hour topic. PixelSearch or whatever it is. Look it up in the help file.

Edit: Nevermind.

Edited by JustinReno

Share this post


Link to post
Share on other sites

up

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

You could do something simple like...

$done =0
while not $done
    ;your mouseclick()
    ;your pixelsearch()
    if not @error then
        $done =1
    endif
wend

The idea is: you want to end the while loop when pixelsearch is a success. The while loop will end when $done =1, which will happen when @error =0, which occurs when pixelsearch is a success.

hope that helps you

Edited by Leighwyn

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

You could do something simple like...

$done =0
while not $done
    ;your mouseclick()
    ;your pixelsearch()
    if not @error then
        $done =1
    endif
wend

The idea is: you want to end the while loop when pixelsearch is a success. The while loop will end when $done =1, which will happen when @error =0, which occurs when pixelsearch is a success.

hope that helps you

Well,

Thanks !!! Working :D

Edited by Xav

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