Rick,
 
if this works for you, you can just call the event handler directly from
somewhere else in your code; you don't have to generate a fake event in
order to get it to execute.
 
otherwise, no, once a window is active, no more activate events will be
triggered.  however, if my first suggestion won't work for you, use WEEvent
to record all the events which happen once the window is active, to see if
anything does keep happening when a new file is loaded (or whatever it is
you are interested in).  maybe there is something you can use.

Chip


________________________________

From: RicksPlace [mailto:[email protected]] 
Sent: Thursday, April 28, 2011 7:24 AM
To: [email protected]
Subject: I found Window Activate but Where is Deactivate Method?


Hi: 
I want to trigger a Window Activated event for a window already activated.
This has to do with how the OS handles loading a file into a text editor by
using the File Menu's List of recently edited files.
I was going to DeActivate the window in question and then generate an
Activated Event for it. 
There is no DeActivate method in the Window Object.
Any idea of how to handle this so I can generate a Activated Event in the
DOM which I can later use in my VBScript code?
Rick USA 
Rick USA
 
 

Reply via email to