PHAK Posted December 15, 2020 Share Posted December 15, 2020 (edited) When I write like this he runs them both together I want 2 to run after 1 So I thought maybe I'll just put some sleep statements, but then I have to figure out how best to optimize it, AND I have to consider whether others 'computers' speeds because a slow computer would need to have longer delays between commands. That would be impossible to optimize for everyone. no "sleep" #RequireAdmin Run(@ScriptDir & '\1.exe') Run(@ScriptDir & '\2.exe') Edited December 16, 2020 by PHAK Link to comment Share on other sites More sharing options...
Nine Posted December 15, 2020 Share Posted December 15, 2020 See RunWait in help file. PHAK 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
TheXman Posted December 15, 2020 Share Posted December 15, 2020 Did you try RunWait()? PHAK 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
PHAK Posted December 15, 2020 Author Share Posted December 15, 2020 #RequireAdmin RunWait(@ScriptDir & '\1.exe') RunWait(@ScriptDir & '\2.exe') Thank you Excellent 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