commit 3114e37739cb6c30ee9e60b1ced43dee3d4e7ee1
parent 1750b1d870991ed469cec7408e221778254ca5fb
Author: Peter <peter@minskio.co.uk>
Date: Thu, 15 Apr 2021 15:01:02 +0100
Add daily notes feature for work
Firefox global hotkey was broken anyway
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk
@@ -47,7 +47,7 @@ RWin::AppsKey ; remap key for Rosewill keyboards
#c::Run calc
^+v::pasteClipboard()
^!m::ControlSend, , {Space}, ahk_exe mpv.exe ; global hotkey to toggle mpv pause/play
-^!n::ControlSend, , {Space}, ahk_exe firefox.exe ; global hotkey to toggle firefox pause/play
+^!n::dailyNotes()
^!Space::toggleAudioDevice()
RAlt & j::ShiftAltTab
RAlt & k::AltTab
@@ -727,6 +727,15 @@ searchCustomer() {
Return
}
+dailyNotes() {
+ global workAddress
+ companyName := SubStr(workAddress,1,InStr(workAddress,"`n")-1) . " Limited"
+ formattime, todaysDate,, yyyy-MM-dd
+ noteFilename := A_WorkingDir . "\OneDrive - " . companyName . "\Notes\wfh\notes " . todaysDate . ".txt"
+ Run notepad "%noteFilename%"
+ Return
+ }
+
toggleAudioDevice() { ;toggle between default audio output (http://ml.pe/optimizing/2013/changing-the-default-sound-device-using-autohotkey/)
switch := !switch
If (switch)