Hi Guys: 
I was getting a MsgBox not getting focus and, i think, not on top of my target 
program's main window. 
I used the following statements and they worked except...
When I click OK I get an error message saying WScript Variable is not defined.
Is there a problem using the root object, WScript with a WE App in VBScript?
Here is the code that works but throws an error:
BeginCopiedCode:
WScriptCreateObject("WScript.Shell")
Sleep 100
WshShell.AppActivate "MyMessageBox"
EndCopiedCode:
Again, the MsgBox is now getting focus and is on top as I want but I get the 
error message after I click the OK Button. Do you know of any WE scripts that 
use WScript I might 
look at?
Rick USA

Reply via email to