Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: giannis121 on November 12, 2010, 04:51:54 AM
-
I'm using a button to call an external application:
Shell ("c:\myapplication.exe")
Inside the same button i want to load a file after "myapplication" file is closed.
LoadFile("c:\myfile.txt")
So, i need something like "~wait for myapplication to close" between these commands:
Shell ("c:\myapplication.exe")
"Wait for myapplication to close"
LoadFile("c:\myfile.txt")
How can i do that?
-
The problem was solved as following:
I created a button which has VB script:
LoadFile("c:\myfile.txt")
While IsLoading()
Sleep 100
Wend
This button has enabled a HOTKEY (for example key "0").
So when my application finishes, focuses on Mach application
and sends a keystroke "0" (the HotKey).
2-3 days of searching and i didn't find any other solution.
Still if you have any idea of controlling it through Mach,
please share.
Giannis