Hi Rick and GW, I have to agree with Rick: I wrote an external script in VBA, and I too could not get any of the events I tested with to fire at all (things like onActivate and onChildActivate). even when I setup onChildActivate on the desktopWindow object, which should have been firing every time I changed windows, weren't firing. wanting to be sure it wasn't my VBA environment, I then did the same thing using an external VBScript program running under WSH. no joy with it either. Chip
_____ From: RicksPlace [mailto:[email protected]] Sent: Tuesday, April 12, 2011 10:38 AM To: [email protected] Subject: A little description of what to use AttachWindowMessage for Hi: Since my VB.net External script is not processing Window Events - actually it did once but never again through several tests it just wouldn't do it again at all. I was wondering what the AttachWindowMessage Method of the WE Application object is used for.It sort of sounds like it might be a counterpart to the MSAA WatchEvents thingy but I'm not sure. The syntax examples are in VBScript in the manual as far as I can tell so I'm not sure this is for Hosted or External scripts and what it actually does. Thanks: Rick USA
