Created
July 8, 2021 12:23
-
-
Save JoeGlines/28d5c8cb09a6e30a75e311e977d79399 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d:: | |
if (a_timesincepriorhotkey != -1 && a_timesincepriorhotkey<200) | |
cnt += 1 | |
else if (a_timesincepriorhotkey > 400) | |
cnt := 0 | |
if (cnt == 0) | |
var := "single click" | |
if (cnt == 1) | |
var := "double click" | |
if (cnt == 2) | |
var := "triple click" | |
if (cnt == 3) | |
var := "quadra click" | |
settimer executeprogram, -400 | |
return | |
executeprogram: | |
if (var == "single click") | |
MsgBox single clicked | |
if (var == "double click") | |
MsgBox Double clicked | |
else if (var == "triple click") | |
MsgBox tripple clicked | |
cnt:="" | |
var := "" | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment