--- In [EMAIL PROTECTED], "swzoh" <[EMAIL PROTECTED]> wrote:
> --- "swzoh" <[EMAIL PROTECTED]> wrote:
> > --- "pgregory9" <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > 
> > > I want to run a script when I connect my Kodal camera to the 
USB 
> > > port. The connection software works this way:
> > > 
> > > KodakCCS.exe is always running in the background
> > > 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 one has caption "Kodak Camera Connection Software" and 
the 
> > > other has caption "Camera Connected". These captions appear in 
the 
> > > task manager briefly
> > > 
> > > The problem is that no combination of these three 
captions/paths 
> > > that I have tried will trigger the script. But I have ben able 
to 
> > > get MS Word to trigger the script.
> > > 
> > > I suspect that part of the problem is that KodakCCS.exe is 
running 
> > > from startup, but shouldn't PP be able to detect one or both 
of the 
> > > other two windoes that it creates during the transfer process?
> > 
> > I've no idea how you're doing this, I suspect you should use
> > 'anywindow' operator somewhere in your script.
> > How about changing 'anywindow' to 'visiblewindow'?
> 
> After a little more thought, I got a feeling that the 'brief'
> appearence may be the cause. If so, then it seems that
> Alan's solution that "if(mounted "F")" might be the only
> solution...

anywindow() was able to detect those little windows in a Monitor 
script, so this is what I worked out (based on your and Alan's 
comments):

Run as a Monitor script:

If(anywindow("*Camera Connected*")) do
    If(anywindow("*cam2pc Image Downloader*")) do
        Quit
    EndIf
    "C:\Program Files\cam2pc\cam2pc.exe" /transfer
EndIf
Quit

The inner "If" is because the wanted program was running twice.

I had tried a window Open command list with caption lists such as

*Camera Connected*
=kodakccs

And others... But none of it worked.

Let me know if this can be made better...

Thanks, this was driving me nuts!

Paul




------------------------ 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/
 

Reply via email to