--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "swzoh" <seanzoh@> wrote:
> >
> > > local _cd_="X:" ;; X is a cdrom drive letter
> 
> I've heard about mci strings: dodgy, I gather.  Thus doesn't work:
> > > [EMAIL PROTECTED]("open "++_cd_++" type cdaudio alias cd shareable")
> > > [EMAIL PROTECTED]("set cd door open notify",win.handle("c=PowerProMain"))
> > > [EMAIL PROTECTED]("close cd")
> 
> but [EMAIL PROTECTED]("open cdaudio") does.

I forgot to tell to replace X with your real cdrom drive letter...
Anyway, your code will always work with the first cdrom:

[EMAIL PROTECTED]("open cdaudio")
[EMAIL PROTECTED]("set cdaudio door open notify",win.handle("c=PowerProMain"))
[EMAIL PROTECTED]("close cdaudio")

I confirmed that this sends callback message 0x03B9 to PP using
WinSpector. So, replace it with the handle of your own window:

win.handle("c=PowerProMain") -> handle of the window to receive the
callback message 0x03B9

> > > dll.call("winmm|mciSendStringA|s ui ui ui","sCmd",0,0,CallbackWnd)
> 
> Oops, that should have crashed or at least thrown an error message.
> You need one spec for each argument, _plus_ one for the return type.

Yup right, but I noticed that sometimes I can omit the return type. I
wonder if it's a consequence of the autohotkey's source, as ahk's
documentation explicitly mentions the cases. I agree it's not a good
practice though.

Sean





Attention: PowerPro's Web site has moved: http://www.ppro.org 
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