Here are a few possible approaches:
------------------------------------------------
A
Instead of testing for a new window
you could test for whether drive F:\ exists
We just had a thread about that, starting with message 18046
"validpath and USB drive..." from DJB.
Briefly, the conclusion is that you can test with:
1:: if (mounted("f"))
2:: the command to run your script
which you could put in a Monitor command list.
------------------------------------------------
B
> The problem is that no combination of these three
> captions/paths that I have tried will trigger the script.
Where are you testing for them?
PowerPro has a few different ways you might be doing that.
In a Monitor command list using: if(anywindow("*camera connect*"))
or maybe using the "Open" Special List or what?
Maybe tell us which method you use and show us an exact paste
of your syntax which checks for the windows, in case there is
a syntax error.
Is the "captionlist" parameter you are using formed correctly?
This should catch either of the windows you mention:
"*camera connect*"
-------------------------------------------------
C
> when I plug in the camera it gets connected as the F:\ drive,
> and during this process two little windows appear in the
> corner near the tray...
Are those things really "windows" technically or are they
some kind of popup bubble tooltip from a tray icon?
Maybe instead of testing for a new window appearing
you could test for a new tray icon appearing?
-------------------------------------------------
D
Inspect those alleged windows with PowerPro's WindowInfo
gadget. Put the command "*Exec WindowInfo" on a button
or a menu. Click once and the gadget appears; click the same
button again and it disappears.
Because the mystery objects only appear briefly, catch them
by having the WindowInfo thing already showing and your
mouse pointer down where the objects will appear - then
connect the camera to the USB.
I suggest that because there are several ways to identify
a window in the "captionlist" parameter you need when you
test for the new window(s).
Exec WindowInfo shows you all of those identifiers.
The window's Handle won't be any use (it's different
every time) but the ClassName might possibly be useful.
---------------------------------------------------
Alan Martin
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/