!7 sclass SpeechRecogHotKey > DynPrintLog { int keyCode = /*59*/88, modifiers = 0; // F12 start { ownResource(onGlobalKeyPress(voidfunc(NativeKeyEvent e) { if (e.getKeyCode() == keyCode && e.getModifiers() == modifiers) { print("Have hotkey"); dm_callModule(dm_makeOrShowModule("#1018551/SpeechRecognizer"), 'startListening); } })); print("Hotkey registered (F12)"); } }