Jump to content
Sign in to follow this  
tommeke228

Double click button in 1 sec

Recommended Posts

tommeke228

Now i got this

HotKeySet("{NUMPAD4}", "idle")

but i want that you need to double press the hotkey in least then 1000msec

thx

here is the program xD (if you need it :D)

#Region
#AutoIt3Wrapper_useupx=n
#endregion
Global $POS1
Global $POS2
MsgBox(64, "AutoDrop", "Gold Dropper On", 3)
HotKeySet("{NUMPAD7}", "record1")

Func RECORD1()
    $POS1 = MouseGetPos()
    MsgBox(64, "Msg", "Drop position is set to (" & $POS1[0] & ", " & $POS1[1] & ")", 3)
EndFunc

HotKeySet("{NUMPAD8}", "record2")

Func RECORD2()
    $POS2 = MouseGetPos()
    MsgBox(64, "Msg", "Click position is set to (" & $POS2[0] & ", " & $POS2[1] & ")", 3)
EndFunc

HotKeySet("{NUMPAD4}", "idle")

Func IDLE()
    While 1
        Sleep(500)
    WEnd
EndFunc

HotKeySet("{NUMPAD5}", "click")

Func CLICK()
    While 1
        MouseClick("left", $POS1[0], $POS1[1], 1, 0)
        Send("1")
        MouseClick("left", $POS2[0], $POS2[1], 1, 0)
        Sleep(800)
    WEnd
EndFunc

IDLE()
Edited by tommeke228

Share this post


Link to post
Share on other sites
Pain

MouseClick ( "button" , x, y , clicks , speed )

so

MouseClick ("left", POS1[0], $POS1[1], 2, 0)

Share this post


Link to post
Share on other sites
tommeke228

nono user must press button twice in 1 sec

then msgbox

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  

×