Results 1 to 3 of 3

Thread: Emulating user interaction

  1. #1
    ... connecting
    Join Date
    Sep 2013
    Location
    mp_toujane
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Emulating user interaction

    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

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    419
    Thanks
    77
    Thanked 97 Times in 82 Posts
    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.
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

  3. #3
    ... connecting
    Join Date
    Sep 2013
    Location
    mp_toujane
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •