VoiceAttack

Profiles, Commands and Plugins => Profile and Command Discussions => Topic started by: Incurable-Rash on June 10, 2019, 11:57:47 AM

Title: Auto load Script
Post by: Incurable-Rash 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.
Title: Re: Auto load Script
Post by: Pfeil 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).
Title: Re: Auto load Script
Post by: Gary 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). 
Title: Re: Auto load Script
Post by: Incurable-Rash on June 10, 2019, 06:07:52 PM
Its elite dangerous and yes the program does have API.
Title: Re: Auto load Script
Post by: Gary 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.