Author Topic: Auto load Script  (Read 3310 times)

Incurable-Rash

  • Full Member
  • ***
  • Posts: 181
Auto load Script
« on: June 10, 2019, 11:57:47 AM »
Is there a way for script/comand to pause and verify that the game/program has finished loading before continuing.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Auto load Script
« Reply #1 on: June 10, 2019, 12:20:16 PM »
If you're launching an application using the "Run an Application" action, you can try its "Wait until launched application us started before continuing" option.
Other than that, you could try the "{WINDOWEXISTS:}" token, to see if the application has spawned its window.

However, neither will guarantee that an application is actually fully "loaded" in that it will properly process input; There is no method to check that within Windows, as far as I'm aware (as Windows has no way of knowing that a game, for example, has finished loading all its resources in the background).

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Auto load Script
« Reply #2 on: June 10, 2019, 12:34:22 PM »
Pfeil is correct.  The, 'wait until started' option can only tell when the application starts accepting Windows messages and does not know what the application is doing from that point on (there would be no way to know unless the target app has some kind of api). 

Incurable-Rash

  • Full Member
  • ***
  • Posts: 181
Re: Auto load Script
« Reply #3 on: June 10, 2019, 06:07:52 PM »
Its elite dangerous and yes the program does have API.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Auto load Script
« Reply #4 on: June 10, 2019, 06:51:19 PM »
Sorry - I need to clarify that -  If the application has an API that would allow you to test if the application is fully loaded.