From 85e2beb613ef2a15df54231cc522812fc065ed95 Mon Sep 17 00:00:00 2001 From: breadcat Date: Thu, 26 Nov 2020 14:18:08 +0000 Subject: Alter tray behaviour again --- ahk-assistant.ahk | 20 +++++++++++++++----- 1 file 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" -- cgit v1.2.3