Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Last active April 26, 2021 15:34
Show Gist options
  • Save JoeGlines/4b7bd82c081906860ddf39e7a0089ee1 to your computer and use it in GitHub Desktop.
Save JoeGlines/4b7bd82c081906860ddf39e7a0089ee1 to your computer and use it in GitHub Desktop.
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;*******************************************************
~LButton::
if (a_timesincepriorhotkey != -1 && a_timesincepriorhotkey<200)
cnt += 1
else if (a_timesincepriorhotkey > 400)
cnt := 0
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 == "double click")
run notepad.exe
else if (var == "triple click")
run cmd.exe
var := ""
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment