Sign in to follow this  
Followers 0
lilandywandy

Need a little help =S

4 posts in this topic

HotKeySet("{PAUSE}", "mExit")

MouseClick("left", 568, 23, 1)

While 1

If PixelGetColor(120,777) = Dec("7b7984") Then

Sleep(500)

Send("{F1}")

Sleep(7000)

Send("{F2}")

Sleep(200)

Send("{F1}")

Sleep(7000)

Send("{F2}")

Send("{F2}")

Sleep(200)

Send("{F2}")

Else

MouseClick("right", 75,568, 1, 0)

MouseClick("right", 119,568, 1, 0)

MouseClick("right", 162,568, 1, 0)

EndIf

Wend

this is not complete, cause i dont know how to make it do what i really want...

basically i want this thing to mouse click those coords till (100,100) turn green and pause till (100,100) is not green anymore..

in other terms, it keeps clicking and pauses when 100,100 is green, and resumes click when 100,100 is no longer green

i also want to to stop clicking if 200,200 is purple and do the

If PixelGetColor(120,777) = Dec("7b7984") Then

Sleep(500)

Send("{F1}")

Sleep(7000)

Send("{F2}")

Sleep(200)

Send("{F1}")

Sleep(7000)

Send("{F2}")

Send("{F2}")

Sleep(200)

Send("{F2}")

and then resume

the script i have above is a start but i dont know how to do the pause on green thingy =(

Share this post


Link to post
Share on other sites



maybe this will help

While 1
    $purple = PixelGetColor(200,200 )
    $green = PixelGetColor(100,100 )
    If $purple = color Then; when purple is purple
    ;do stuff
    EndIf   
    If $green = color Then; when $green is green
    ;do stuff here
    Else; when $green is not green
    ;do stuff
    EndIf   
WEnd

Replace the word "color" with the number of the color. Also things may need to be moved around to fit the logic of what you are tring to do.


.

Share this post


Link to post
Share on other sites

While 1

$purple = PixelGetColor(120,777)

$green = PixelGetColor(370,708)

If $purple = 7b7984 Then

Sleep(500)

Send("{F1}")

Sleep(7000)

Send("{F2}")

Sleep(200)

Send("{F1}")

Sleep(7000)

Send("{F2}")

Send("{F2}")

Sleep(200)

Send("{F2}")

EndIf

If $green = 00f742 Then

Sleep(5000)

Else

MouseClick("right", 75,568, 1, 0)

MouseClick("right", 119,568, 1, 0)

MouseClick("right", 162,568, 1, 0)

MouseClick("right", 193,568, 1, 0)

MouseClick("right", 228,568, 1, 0)

EndIf

Wend

Func mExit()

Exit

EndFunc

im getting an error when im trying to run it something about unknown command

Share this post


Link to post
Share on other sites

If $purple = "7b7984" Then
;....
;....
If $green = "00f742" Then 
;....
;....

Quotation marks.


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

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