"Sheri" wrote:
> --- In [email protected], "quantiworks" <quanticworks@> wrote:
> >
> > "Sheri" wrote:
> >
> > > It goes into a new function: Function CloseiTunes()
> >
> > Hmm...If that goes into a new function, that means that it'll
> > work if I close iTunes via that function and not by the iTunes
> > close button or exit menu.
>
> That is how to prevent itunes from showing the warning.
Yeah, when you said new Function, I got it's purpose.
I hadn't before that.
> > That indeed works but that's not what I was asking...I want to
> > close it via the program itself and not PowerPro, that's why I
> > asked about auto-closing the "Quit" window.
>
> For that you need an entry in your autorun command list. The warning window
> opens with keyboard focus on the quit button so you can send the enter key.
>
> Name: c=iTunesCustomModalDialog
> Command: *Script
> Script action: If
> If expression in parentheses:
> (slice(win.childtextbyindex(lastautorunhandle,2),11)=="One or more")
> More Commands:
> win.keys("{enter}")
>
> The next time the info expr label that runs the gettrack function runs, it
> will see that itunes is not open and will release the connection. After that,
> every couple of seconds it will be checking to see if itunes is open again.
> If so, it will make a new connection.
Perfect and a big THANK you!
Cheers