Last active
April 26, 2021 15:34
-
-
Save JoeGlines/4b7bd82c081906860ddf39e7a0089ee1 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
;******************************************************* | |
; 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