Jump to content
tharos96

How can I make the script end after it closed the processes?

Recommended Posts

tharos96

How can I make the script end after it closed the processes?

Run("C:\Program Files\ShareX\ShareX.exe")
Run("C:\Program Files\CPUID\GwentTracker\Gwent_Tracker.exe")
Run("C:\Program Files (x86)\GOG Galaxy\GalaxyClient.exe")

WinWaitActive("[CLASS:GalaxyClientClass]","","100")
Sleep (700)
MouseClick("right", 265, 263, 2, 1)
Sleep (300)
MouseClick("left", 325, 274, 2, 1)
Sleep (10000)
MouseClick("left")
Sleep (250)
MouseClick("left")
Sleep (250)
WinClose("[CLASS:GalaxyClientClass]")
While 1
   If ProcessExists("Gwent.exe") Then
      Else
            ProcessClose("ShareX.exe")
            ProcessClose("Gwent_Tracker.exe")
            ProcessClose("GalaxyClient.exe")
   EndIf
WEnd

 

 

Edited by Jos
Added code box and question from title

Share this post


Link to post
Share on other sites
tharos96

Solved

 

Share this post


Link to post
Share on other sites
Jos

@tharos96

Please ensure you read our forum rules before continuing posting in our forums as it seems your question is game related.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


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

×