Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created September 25, 2022 18:34
Show Gist options
  • Save JoeGlines/dfc29243a26fda174f7a7ae6cf7384aa to your computer and use it in GitHub Desktop.
Save JoeGlines/dfc29243a26fda174f7a7ae6cf7384aa 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
;*******************************************************
#MaxThreadsPerHotkey, 2 ;https://www.autohotkey.com/docs/commands/_MaxThreadsPerHotkey.htm
Tooltip, Toggle %Toggle%
^t::
;**************************************
toggle :=!Toggle ;Set toggle to not be toggle
Tooltip, Toggle here: %Toggle%
sleep, 1000
While, Toggle{ ;Use a while loop if Toggle exists
Tooltip, Toggle %Toggle% In While loop-%A_Index% ;showing the loop
sleep, 1000 ;just adding a sleep so not cray-cray fast
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment