From 13a344f480217d5c88bf89aa5fcfc81f646708f2 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Tue, 16 Nov 2021 11:22:11 +0100 Subject: [PATCH] Update the readme to include CloseWindow --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 0cb30fd..75e09e3 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,13 @@ Here is an example `hotkeys.ini` config Modkeys=ctrl+alt Hotkey=q +# HotkeyD has a built in function to close the active window +# However due to limitations in the Windows API the win key cannot be used alone as a modkey! +# The entry for this hotkey has to be named [CloseWindow] +[CloseWindow] +Modkeys=alt +Hotkey=q + # Example "open notepad" hotkey [notepad] Modkeys=ctrl+alt @@ -93,4 +100,5 @@ go get github.com/MakeNowJust/hotkey go get github.com/kardianos/osext go get gopkg.in/ini.v1 go get tawesoft.co.uk/go/dialog +go get github.com/micmonay/keybd_event ```