Results 1 to 7 of 7

Thread: What UI element should I select to exit the Battle Results screen?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Member mrtwisties's Avatar
    Join Date
    Nov 2007
    Location
    Sydney, Australia
    Posts
    235

    Default What UI element should I select to exit the Battle Results screen?

    I'm still working on the same project I posted earlier (https://forums.totalwar.org/vb/showthread.php?t=95802), but now I have a different question so I've created a different post. I hope that's okay.

    Here's the situation:
    1. When you auto-resolve a land or sea battle, a battle results screen comes up.
    2. I'd like to use a script to automatically get rid of this results screen.
    3. Here is the code I'm using (unsuccessfully):

    declare_counter DismissScroll
    set_counter DismissScroll 0

    monitor_event ScrollOpened ConditionTrue
    set_counter DismissScroll 1
    end_monitor

    monitor_conditions I_CompareCounter DismissScroll = 1
    set_counter DismissScroll 0
    select_ui_element confirm_quit_scroll
    simulate_mouse_click lclick_down
    simulate_mouse_click lclick_up
    end_monitor
    Here are the questions:
    Q1. Is this the right monitoring code? When I try and test with puppify_my_love, the puppies appear straightaway.
    Q2. What UI element should I select to exit the Battle Results screen?

  2. #2
    Notepad user Member Red Spot's Avatar
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    491

    Default Re: What UI element should I select to exit the Battle Results screen?

    could you explain me what these 2 commands do;

    simulate_mouse_click lclick_down
    simulate_mouse_click lclick_up


    I mean seperatly from one an other ....


    G

  3. #3
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default Re: What UI element should I select to exit the Battle Results screen?

    They:
    Simulate the action of pressing the mouse left button down
    Simulate the action of then lifting the left mouse button

  4. #4
    Member Member mrtwisties's Avatar
    Join Date
    Nov 2007
    Location
    Sydney, Australia
    Posts
    235

    Default Re: What UI element should I select to exit the Battle Results screen?

    There isn't a simulate_key_press command, is there?

  5. #5
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default Re: What UI element should I select to exit the Battle Results screen?

    Have you tried calling a shortcut? You can do that with a script, and there are shortcuts to almost all the scrolls.

  6. #6
    Member Member mrtwisties's Avatar
    Join Date
    Nov 2007
    Location
    Sydney, Australia
    Posts
    235

    Default Re: What UI element should I select to exit the Battle Results screen?

    I've tried pretty much every shortcut that looks like it might refer to a button or a continue function. I've only been working off the descr_shortcuts.txt file, though, so if there are more out there then that could be handy. But unless my search skills are particularly woeful, that's all there is.

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