Results 1 to 4 of 4

Thread: Scripting

  1. #1

    Default Scripting

    This is probably a no, but is it possible trigger a scroll from a script running in the background? I've looked through the docudomen files but can't find anything.

  2. #2
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Scripting

    Well, you can open a few scrolls by pressing their buttons with a script, e.g. the faction summary scroll or the building scroll, but you can't open a specific scroll with a simple command.

  3. #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.

  4. #4

    Default Re: Scripting

    Ok, thanks anyway.

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