Ohoyhoy.

Took a bit since I don't use Hotkeynet anymore, but here's a slightly changed version that worked fine for me:

https://pastebin.com/BMdTdzjN


...