Results 1 to 4 of 4

Thread: Scripting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Simulation Monkey Member The_Mark's Avatar
    Join Date
    Dec 2004
    Location
    Helsinki, Finland
    Posts
    2,613

    Default Re: Scripting

    Simulating mouse clicks on the correct buttons should work. Specifically these commands:

    Code:
    Identifier: simulate_mouse_click
    Parameters: [lclick_down|lclick_up|rclick_down|rclick_up|ldbl_c lick]
    Description: Acts as if the given mouse event had happened on the currently 'selected' ui_element (see 'select_element' command)
    Sample use: select_element hud_show_buildings_tab
    simulate_mouse_click lclick_down
    Class: SIMULATE_MOUSE_CLICK
    Implemented: Yes
    Author: Tom
    ---------------------------------------------------
    Identifier: select_ui_element
    Parameters: element id (see available_ui_element_ids.txt for appropriate identifiers)
    Description: Use in conjunction with simulate mouse click to store the element that will next recieve the simulated mouse click
    Sample use: select_element hud_show_buildings_tab
    simulate_mouse_click lclick_down
    Class: SELECT_ELEMENT
    Implemented: Yes
    Author: Tom
    Though, as alpaca said, this only works for a few specific scrolls.
    Last edited by The_Mark; 12-23-2005 at 19:49.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO