AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scripts communication

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Gauss



Joined: 10 Sep 2009
Posts: 203

PostPosted: Sat Mar 06, 2010 11:41 am    Post subject: Scripts communication Reply with quote

I don't even know what to search the forum for to do this Confused

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
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Sat Mar 06, 2010 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gauss



Joined: 10 Sep 2009
Posts: 203

PostPosted: Sat Mar 06, 2010 5:08 pm    Post subject: Reply with quote

RunWait worked perfect

Thanks hugov, always helpful, great guy Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group