--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote:
> 
> I've got most of DLL onMessage service done.

Good News!

> It works by creating a hidden window, and monitoring for any message
> for say you're interested in, firing the pp command you specify when
> the message turns up.  
> 
> There's another service to hand out handle to monitoring window so you
> can tell other apps that's the window to send messages to.
> 
> So: aside from using win.sendmessage in pp script, let me now if you
> can think of any realistic test to see if it works.
> 
> I'm working now on inserting wParam/lParam as either DWORD or string
> into the supplied command.  Muttering to self about handling incoming
> WM_COPYDATA messages as well

I can think of one example atm, mciSendString with 'notify' flag which
sends callback message MM_MCINOTIFY (0x03B9). I set here Callback
Window to 'c=PowerProMain' window, you can change it appropriately.

------------------ mciSendString.PowerPro -------------------------
local _cd_="X:" ;; X is a cdrom drive letter
[EMAIL PROTECTED]("open "++_cd_++" type cdaudio alias cd shareable")
[EMAIL PROTECTED]("set cd door open notify",win.handle("c=PowerProMain"))
[EMAIL PROTECTED]("close cd")
quit

@mci
args sCmd,CallbackWnd
dll.call("winmm|mciSendStringA|s ui ui ui","sCmd",0,0,CallbackWnd)
quit
-------------------------------------------------------------------

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