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