What I would suggest is creating a command list that runs every time a
window appears. In that list, you can specify the caption of the window (or
exe name or whatever) you want to perform an action on. If there is a hot
key on the "No" button, use *Keys {alt}n (assuming the hot key is "n") to
close the window or you can simulate a click event to click on the button if
you can determine the location of the button.
Check the help index for "auto run when a window opens" for more details.
Paul
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of ehathgepiurhe
Sent: Sunday, April 01, 2007 12:06 AM
To: [email protected]
Subject: [power-pro] Help with checking for Window
Hi everyone,
I was after a bit of help with getting PowerPro to detect a particular
program window/dialog and to act on it. The window/dialog title is
"Sygate Personal Firewall Pro {date} {time}" and the text is "NT
Kernel System has changed...blah blah blah". What I want PowerPro to
do is to detect if this window/dialog ever pops up, and if so, to
click the "No" button in the window/dialog automatically. Can this be
done with PowerPro? I've had a look through the helpfile, but I
haven't been able to progress far. All I have so far is (in the
HookWindowEvents group):
wait.until (activewindow("*Sygate Personal Firewall Pro*"))
--
Regards,
CM
[Non-text portions of this message have been removed]