>Thanks for that. I have found a second way to do the same thing. I
>wrote an AutoIt script to check for the window and to click the No
>button. The only thing is that I don't want the script to be running
>all the time, only when the window actually pops up. So, I thought of
>using PowerPro to detect the window, and then to run the script. The
>only problem is that when I put an entry in the HookWindowEvents
>group, PowerPro and AutoIt went crazy. I'm pretty sure it was due to
>the command I used:
>Wait in the Command field, and
>until (activewindow(,Sygate*,)) in the Command Parameters field.
>Anyway, the AutoIt script began opening tens of different instances of
>it, and PowerPro crashed (couldn't handle the load I guess)
>I then tried:
>Wait in the Command field, and
>for (activewindow(,Sygate*,)) in the Command Parameters field.
>Exact same thing. What would be the correct command to use within
>PowerPro to wait for a window titled ,Sygate Personal Firewall Pro,?
>The script I wrote will actually check the text of the window, so if
>it isn't exactly what I want, the script will do nothing and exit. I
>just need to work out how to get PowerPro to run it when that window
>pops up. 
 
CM,
 
What I've used in the past is an auto-run command list.  In the Help index,
enter this : "auto run when a window opens" without the quotes.
 
In short, create a new command list.  On the Command List tab in the
configure dialog box, select the setup button.  Go to the "Special List" tab
and ensure that your new command list is the one listed in the "Open" drop
down.
 
Then, create a new list item.  In the Name edit box put the caption
"Sygate*" (without the quotes).  Either put the call to the autoit script in
the command list's "Enter Command" edit box, or create a PP script file with
the AutoIt script file call and call the PP script from the "Enter Command"
edit box.  Usually, I use a win.debug('here') call first until I can get the
Name right, then swap out the debug call with my real code.  You might need
to play with the caption some. 
 
If you need to use a wait call, then I recommend the script.  My experience
with the auto-run is that the additional check is unnecessary, but your
machine might be different.
 
I stay away from HookWindows.  Every time I use it, I get in trouble, and I
don't customize my machine so heavily that PP native abilities don't cover
what I need.
 
HTH
Paul 
 


[Non-text portions of this message have been removed]

Reply via email to