Code: Select all
; -------------------------
; _INIT.ahk - Master script
; -------------------------
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory
#Include %A_ScriptDir% ; Changes the working directory for subsequent #Includes and FileInstalls.
; (Must have this in order for #Include calls to work)
MsgBox This will be displayed
; Shortcut: Reload this script (Ctrl + Win + Alt + R)
^#!r::
; Send, ^s ; To save a changed script
; Sleep, 300 ; give it time to save the script
Reload
; Confirm once _INIT.ahk has been (re)loaded
TrayTip, AutoHotKey, _INIT.ahk has been (re)run, 1, 16
SoundPlay, Assets\Sounds\UI-Sound-01.wav
return ; <-- Not sure if needed (I'm a nuub)
Code: Select all
; -------------------------
; _INIT.ahk - Master script
; -------------------------
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory
#Include %A_ScriptDir% ; Changes the working directory for subsequent #Includes and FileInstalls.
; (Must have this in order for #Include calls to work)
; Shortcut: Reload this script (Ctrl + Win + Alt + R)
^#!r::
; Send, ^s ; To save a changed script
; Sleep, 300 ; give it time to save the script
Reload
MsgBox This won't be displayed
; Confirm once _INIT.ahk has been (re)loaded
TrayTip, AutoHotKey, _INIT.ahk has been (re)run, 1, 16
SoundPlay, Assets\Sounds\UI-Sound-01.wav
return ; <-- Not sure if needed (I'm a nuub)