summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ahk-assistant.ahk20
1 files changed, 15 insertions, 5 deletions
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk
index cf3ef67..8d9b4a0 100644
--- a/ahk-assistant.ahk
+++ b/ahk-assistant.ahk
@@ -5,6 +5,7 @@
; environment
#NoEnv
#SingleInstance,Force
+#Include, *i %A_ScriptDir%\variables.ahk ; include physical and ip address completions, only included if exists. See .gitignore for details
CoordMode,Mouse
SetWorkingDir %A_MyDocuments%\..\
SetWinDelay,0
@@ -14,12 +15,15 @@ SetCapsLockState, AlwaysOff
SetScrollLockState, AlwaysOff
SetNumLockState, AlwaysOn
SetTimer, changeReload, 1000
-Menu, Tray, Icon, %A_ScriptDir%\%A_ScriptName%.ico ; tray icon
-menu, tray, add, Edit variable file, scriptEditVariables ; autorun tray indicator
-Menu, tray, add ; seperator for menu
-menu, tray, add, Autorun Script, scriptAutorun ; autorun tray indicator
-#Include, *i %A_ScriptDir%\variables.ahk ; include physical and ip address completions, only included if exists. See .gitignore for details
+; custom tray menu
+menu, tray, icon, %A_ScriptDir%\%A_ScriptName%.ico ; tray icon
+menu, tray, nostandard
+menu, tray, add, Edit script source, scriptEdit ; edit scriptname.ahk
+menu, tray, add, Edit variable source, scriptEditVariables ; edit variable.ahk
+menu, tray, add, Autorun Script, scriptAutorun ; autorun tray indicator
+menu, tray, add ; seperator for menu
+menu, tray, standard
; global hotkeys
#q::Run notepad
@@ -793,6 +797,12 @@ kdeResize() {
Return
}
+scriptEdit:
+ {
+ Run notepad "%A_ScriptDir%\%A_ScriptName%"
+ Return
+ }
+
scriptEditVariables:
{
Run notepad "%A_ScriptDir%\variables.ahk"