Jump to content

Sleep with hotkey


Xav
 Share

Recommended Posts

how it can sleep 6 sec after each sendet(1)

PS:: ONLY IF HE PRESS 1! If it dont continu to check more :D

Like he press 1 and stop for 6 sec?

Thanks for any help!

Never mind i just found xDDDDDDDDDDDDD

If @error Then

Send("1")

sleep(6000)

EndIf

; HotKey
HotKeySet ("{PAUSE}","Poting")
HotKeySet ("{ESC}","ExitP")

; Code

While 1
    Sleep (1)
    WEnd

Func Poting()
    While 1
$Color = PixelGetColor(76, 558)
$Coord = PixelSearch( 40, 547, 110, 565, 0x5C0000 )

If @error Then
    Send("1")
    
EndIf
    WEnd
EndFunc

Func ExitP()
Exit
EndFunc
Edited by Xav
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...