PDA

View Full Version : Emulating user interaction



iBuddie
23rd July 2020, 18:55
Is there a menu-based way to trigger client-sided key-pressing or mouse movement & clicks (kinda the opposite of execKey or execKeyInt)? That would be useful to create more interactive menus or to interact with list feeders :)

maxdamage99
24th July 2020, 12:42
Initiate keystrokes on the client? What for? Everything that you have written does not really make it clear why you need it.
Maybe I misunderstood, reformulate pls.

iBuddie
24th July 2020, 16:57
If you have a menu item of type ITEM_TYPE_LISTBOX that lists maps/players/mods using the feeder property (like in the server creation menu ui_mp/createserver.menu), I see no direct way to set the current selection as the input is handled via the game internal menu system. The player has to use either the mouse as input, or some specific keys (KEY_PGDN, KEY_PGUP, KEY_DOWN, KEY_UP and keypad equivalents). Does that help?