Hello all.
I need a script that understands while my left mouse button is clicked (and held) and turns into a double click "with sleep(100) between the clicks. But I don't know the best way to do it..
I thought about: (its only to test, then I'd swap the filewriteline for clicks)
#include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
If _IsPressed("01", $dll) = 1 Then
Do
;MouseClick("left")
FileWriteLine(@ScriptDir & "\" & "HOLDTIME.txt", @CRLF & "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
Sleep(100)
Until _IsPressed("01", $dll) = 0
FileWriteLine(@ScriptDir & "\" & "RELEASE.txt", @CRLF & "RELEASE")
EndIf
WEnd
Does anyone know a better way to do it?