Jump to content

Recommended Posts

Posted

I'm not going to lie, there probably is a lot cleaner way of doing this, but this works:

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1

    While Not _IsPressed(50,$dll)
                Sleep(1)
        If _IsPressed(50,$dll) Then

            While _IsPressed(50,$dll)
                Sleep(1)
            WEnd
            $Timer=TimerInit()
            While TimerDiff($Timer)<=90
                If _IsPressed(50,$dll) Then _PPressed()
            WEnd
            ExitLoop
        EndIf
    WEnd

WEnd

Func _PPressed()

Msgbox(0,"Information","P was pressed twice in "&Round(TimerDiff($Timer),3)&" milliseconds!")

EndFunc
Instant Lockerz Invite - www.instantlockerzinvite.co.uk

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
  • Recently Browsing   0 members

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