Jump to content

Pause script until program finishes loading


Giulio
 Share

Recommended Posts

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!

Link to comment
Share on other sites

  • Moderators

@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.

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...