Page 1 of 1

Capture keystrokes in LM.GUI dialog?

Posted: Mon Nov 13, 2023 6:33 pm
by dstofka
I'm writing a script that has different modes, and I want to be able to quickly trigger them with a second keystroke after my initial keyboard shortcut invokes the script itself. So if I set up [ShiftT] as the keyboard shortcut to my script, I want to be able to press [ShiftT]-then-[1], or [ShiftT]-then-[2], or [ShiftT]-then-[3], etc. to access the different modes of my script.

Since keystrokes have the inherent possibility of being attached to other tools, I was wondering if this could be accomplished using a modal dialog box that immediately comes up when the script is invoked. Is there a way to listen for a single keystroke in a dialog box or attach keyboard shortcuts to custom GUI buttons?

Re: Capture keystrokes in LM.GUI dialog?

Posted: Tue Nov 14, 2023 12:39 am
by synthsin75
Not currently possible.

Re: Capture keystrokes in LM.GUI dialog?

Posted: Wed Nov 15, 2023 2:17 pm
by 570295535
This can only be done with one master script and two additional scripts, each binding its own shortcut key.