This is the AHK script I use daily. Some functions are written by me, while others are modified or copied from online. For the latter, I have included links to the original authors. See comments for function descriptions and usages.
Note that files specified in the #include commands in Daily.ahk are not uploaded (i.e. AutoCorrect.ahk) because they contain private information.
-
create script shortcut and put it in startup folder
-
folder location: Win+r →
shell:common startup
-
use built-in task scheduler (avoids UAC prompt): Win →
task scheduler -
click
Create Task, then go to-
General→ enter task name → checkrun with highest privileges -
Triggers→New→at log on -
Actions→New→Browsefor script location
-
-
conflicting title:
-
DiscordandGoogle Chromehave the sameahk_class -
File ExplorerandTaskbarhave the sameahk_exe -
File ExplorerandControl Centerhave the sameahk_class -
File Explorerhas no consistent title (i.e.- window title) -
Discordhome page isDiscordinstead of... - Discord
-
-
web title:
- tab that is currently playing audio (shows
This tab is playing audioin tab title) cannot be detected
- tab that is currently playing audio (shows
- use Shift as secondary function
Some command parameters do not allow expression syntax, so legacy syntax is needed (i.e. %Var% or % Var)
All function parameters allow expression syntax, meaning variables do not need to be wrapped with percent sign
Variables: variables store everything on the right side as String. Not case sensitive. No need to declare/specify type of variables
Hotstring:
{{}={{}}=}{Return},{Enter},`n= new line{Tab},`t= tab