Yes, I think so Rick. wScript was designed to be used in the windows scripting host, and GW has tried to replace all of it's functionality by giving us their script object. If the additional message box constant I gave in another email does not help this situation, then you could find your message box's windows using the various "filter" methods of the "windows" object, and then activate it using the window activate method of the window you found. hth, Chip
_____ From: RicksPlace [mailto:[email protected]] Sent: Thursday, April 28, 2011 5:49 PM To: [email protected] Subject: Can We Use WScript in WindowEyes VBScript App? 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
