From 3114e37739cb6c30ee9e60b1ced43dee3d4e7ee1 Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 15 Apr 2021 15:01:02 +0100 Subject: Add daily notes feature for work Firefox global hotkey was broken anyway --- ahk-assistant.ahk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk index c56b708..85ce9b1 100644 --- 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) -- cgit v1.2.3