Pause script until program finishes loading

2 posts in this topic

Hi guys, I wanted to do a script that opens my League of Legends game client and automatically does the login tiping my password using SEND()

I wrote first of all

Run("C:\Riot Games\League of Legends\LeagueClient.exe")

and the client opens.

The problem is that I don't want to use sleep() because I want to do it as fast as possible and everytime the time the client requires to open is differend, depending on processes open on my system, stuff like that. Is there a command that pauses the script until the client finishes to load the GUI?

Tried RunWait() but it didn't work cause I think it pauses the script until I press the X button of the client.

Thank you for the help!

Share this post

Link to post
Share on other sites

@Giulio you seem not to have stumbled upon the forum rules during your time here. I suggest you read them now, and you will see why this thread is locked. You will get no assistance on this topic.


√-1 2^3 ∑ π, and it was delicious!

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.