Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created July 8, 2021 12:23
Show Gist options
  • Save JoeGlines/28d5c8cb09a6e30a75e311e977d79399 to your computer and use it in GitHub Desktop.
Save JoeGlines/28d5c8cb09a6e30a75e311e977d79399 to your computer and use it in GitHub Desktop.
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