| View previous topic :: View next topic |
| Author |
Message |
Gauss
Joined: 10 Sep 2009 Posts: 203
|
Posted: Sat Mar 06, 2010 11:41 am Post subject: Scripts communication |
|
|
I don't even know what to search the forum for to do this
I want to run a script (Script_2) using another script (Script_1) and wait for that script (Script_2) to finish and close then do some other things using the first script (Script_1).
How can the first script know that the other one is done and closed?
Thanks |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Sat Mar 06, 2010 12:26 pm Post subject: |
|
|
You could simply use runwait script2.ahk, script1.ahk shouldn't continue until script2.ahk is closed I think. Otherwise you could try to detect the process or ahk window (each script has a window, even it if has no gui, so run with outputvarPid and detecthiddenwindow on) but runwait is probably all you need. _________________ AHK Wiki FAQ
TF : Text files & strings lib, TF Forum |
|
| Back to top |
|
 |
Gauss
Joined: 10 Sep 2009 Posts: 203
|
Posted: Sat Mar 06, 2010 5:08 pm Post subject: |
|
|
RunWait worked perfect
Thanks hugov, always helpful, great guy  |
|
| Back to top |
|
 |
|