summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2020-11-26 14:18:08 +0000
committerbreadcat2020-11-26 14:18:08 +0000
commit85e2beb613ef2a15df54231cc522812fc065ed95 (patch)
tree6a9e98c4ea3943238f18e44bc3d6160f5ba35135
parent84a125bfdf41dfcb0262cb67b6039534c2f55bf1 (diff)
downloadahka-85e2beb613ef2a15df54231cc522812fc065ed95.tar.gz
ahka-85e2beb613ef2a15df54231cc522812fc065ed95.tar.bz2
ahka-85e2beb613ef2a15df54231cc522812fc065ed95.zip
Alter tray behaviour again
-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"