--- In [email protected], "edbj" <e...@...> wrote:

> >Can you select the window by caption.
> > 
> I'm having difficulty recognizing captions. I'm titling different HTML pages 
> with descriptive names, e.g., 'Initialize,' 'Login,' etc., and trying to 
> trigger a command based on the resulting caption. To wit:


I can see two possible  problems:
First, PowerPro caption matching only looks at main window.  Possibly the 
windows you are seeing are child windows.  You can experiment with the various 
win.xx functions that work with child windows to see the captions. e.g. 
childhandlelist.


Second, using many open wait.for's to wait for extended periods, e.g. until you 
happen to open a window, is not reliable.  Basically, if you have multiple 
wait.for's running, only the latest one is monitored until that wait completes, 
then the next latest one, etc.  The wait.for's are on a stack and only the 
topmost is monitored.  

If you always have Opera open, and are just trying to trigger a command to 
happen when a certain caption appears, possibly all you can do is have a timer 
or event that each second or so looks at Opera windows (or child windows) and 
if it finds the caption, executes your command.

Reply via email to