ResophNotes Hot-key Toggle

ResophNotes is a great note taking application, which I’ve just started using recently.

One of the cool features is that you can assign a hot-key to the application (for example CTRL+R), so you can open it very quickly. Unfortunately the hot-key doesn’t work for minimising the ResophNotes window again. Instead you have to use ALT+SPACE+N to minimise it.

I found using ALT+SPACE+N a bit cumbersome, so I put together a simple Autohotkey script that allows you to use a single hot-key for both minimising and maximising ResophNotes:

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

^r:: Gosub, resophmin ; Sets the Resoph toggle key to CTRL+R

WinGet, windowstatus , MinMax, ResophNotes, , , ; Gets the status of the ResophNotes window

if windowstatus =0
WinMinimize , ResophNotes, , , ; If the ResophNotes window is maximised, AHK will minimise it
send ^9 ; If the ResophNotes notes window isn't maximised, AHK will send a key combination (CTRL+9), this should be the same combo as configured in the ResophNotes options.

However please note that this script still uses the hot-key configured in ResophNotes itself, which can’t be the same as the hot-key used for the Autohotkey script. In the above example I configured the Autohotkey script to use CTR+R and ResophNotes to CTRL+9.

If you don’t have Autohotkey installed, or just want a pre-compiled exe for the script, you can download it from here.