I'm dusting off some scripts I"ve used, and trying to improve them as I go along. I have one UI which has a lot of buttons, and I was wondering if there was some way to bind these to keyboard keypresses.
For example, I load a ui "ui -reload uiname"
This brings up a window with multiple button controls. These by default have mouse handlers (onleftclick,onrightclick).
Is there some way I can associate a keypress with each button?
When I press 'A' then the first button is pressed, etc.
The reason I ask is that I bought a G13 and would like to integrate it into this form. In other words, eventually assign a G key to a UI button/event.
PS: Is there a way I can change my forum name?
Q on keyboard handling in LavishGUI
Moderators: Lavish Software Team, Moderators
I would really like LavishScript questions kept to ismods.com still.
This is more or less how ISBoxer's menu management script attaches a list of hotkeys to UI buttons.
You can turn bindings like this on and off in MouseEnter/MouseExit if you want per-button bindings
No there is nothing built into LavishGUI to associate that, but yes of course you can use the bind command to do it.Is there some way I can associate a keypress with each button?
Code: Select all
bind my-binding g13-g1 UIElement[xyz]:LeftClick
You can turn bindings like this on and off in MouseEnter/MouseExit if you want per-button bindings
If you want to also use a different name to log into the software, yes. Otherwise we can change your forum name on ismods.com and you can ask your LS questions there as we have beforePS: Is there a way I can change my forum name?