Re: How do I wait for a VBScript to finish?

2011-08-20 Thread Bill Vlahos
Ken, Sorry I took so long to reply. I had a medical problem that is fine now. I'm using the sendText VBScript. Here is the script to send an item. put "Set WshShell = CreateObject(" & quote & "WScript.Shell" & quote & ")" & return & \ "WshShell.SendKeys" && quote & field "Te

Re: How do I wait for a VBScript to finish?

2011-08-12 Thread Ken Ray
On Aug 12, 2011, at 2:26 PM, Bill Vlahos wrote: > I call a VBScript and need to know when it finishes so that I can restore a > window. I can put a long delay but that isn't very elegant and the time delay > should be a few seconds but it may take longer on older systems. > > I'm doing the sam

Re: How do I wait for a VBScript to finish?

2011-08-12 Thread Bob Sneidar
If you wrote the VBScript, then have liveCode check for a specific temp file and create it if it doesn't exist. Call your VBScript, then enter a wait loop checking every so often to see if the file still exists. If it does, wait some more. When the VBScript is done, have it delete the file. Y

How do I wait for a VBScript to finish?

2011-08-12 Thread Bill Vlahos
I call a VBScript and need to know when it finishes so that I can restore a window. I can put a long delay but that isn't very elegant and the time delay should be a few seconds but it may take longer on older systems. I'm doing the same thing with an AppleScript on the Mac but it doesn't seem t