Capel Posted March 15, 2010 Share Posted March 15, 2010 I have 2 AutoIT apps. I want the first app, with a GUI, to launch the second app. When the first app closes, I want to terminate the second app. BTW, the second app does not have a GUI. I searched for answers to this question, but did not find what I'm looking for. Can anyone point me to a thread that discusses this topic or suggestions on how to monitor the second app so I know what to close? Link to comment Share on other sites More sharing options...
l3ill Posted March 15, 2010 Share Posted March 15, 2010 You could try FileInstall to get the second script to be a part of the first and then control it with a HotKeySet. When you close the main the the second dies as well. Unless I misunderstand.... My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
somdcomputerguy Posted March 15, 2010 Share Posted March 15, 2010 In the first app, use OnAutoItExitRegister, http://www.autoitscript.com/autoit3/docs/functions/OnAutoItExitRegister.htm, to run a function that ends the second app. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Capel Posted March 15, 2010 Author Share Posted March 15, 2010 The second application is a polling app. Since AutoIT is not multi-threaded, I'm looking for a poor-man's way of polling without bogging down my main app. Snowmaker, the on exit function could terminate the second app, if I can track a process id or something when the first app launches it. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 15, 2010 Developers Share Posted March 15, 2010 . BTW, the second app does not have a GUI. I searched for answers to this question, but did not find what I'm looking for. All Autoit3 scripts have a GUI.Look at: AutoItWinSetTitle() SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted March 15, 2010 Share Posted March 15, 2010 ..if I can track a process id or something when the first app launches it.RunReturn ValueSuccess: The PID of the process that was launched. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Capel Posted March 15, 2010 Author Share Posted March 15, 2010 Thanks for the responses. This gives me enough to get started. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted March 15, 2010 Share Posted March 15, 2010 Alright. Good luck. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now