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
→Browse
for script location
-
-
conflicting title:
-
Discord
andGoogle Chrome
have the sameahk_class
-
File Explorer
andTaskbar
have the sameahk_exe
-
File Explorer
andControl Center
have the sameahk_class
-
File Explorer
has no consistent title (i.e.- window title
) -
Discord
home page isDiscord
instead of... - Discord
-
-
web title:
- tab that is currently playing audio (shows
This tab is playing audio
in 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