Page 1 of 1

SendMessage and DvbDream

Posted: Sun Feb 10, 2008 7:37 am
by Isch
Hello,

i am trying to send a message from an c# application to DD using the API function "SendMessage".

Example:
SendMessage(ipDD, 0x0400 + 323, 0, 0x00000002);

1. param = HWND of DD´s mainwindow (C# IntPtr)
2. param = message type "WM_REMOTE_DEVICE_MSG"
3. param = wParam zero
4. param = lParam key code

This doesn´t work. Any ideas how to get this working??

Thanks
Isch

Posted: Mon Feb 11, 2008 8:12 am
by rel
you should select "Native" as remote type to be able to use WM_REMOTE_DEVICE_MSG (this function enables to use DD's internal key assignment dialog)

main menu->options->remote

Posted: Mon Feb 11, 2008 9:54 am
by Isch
Hi rel,

thanks for your reply.

I have selected this option, but it doesn´t work. Any other ideas?

Isch

Posted: Mon Feb 11, 2008 1:11 pm
by rel
Hi rel,

thanks for your reply.

I have selected this option, but it doesn´t work. Any other ideas?

Isch
no idea,
maybe window handle is wrong ?
try to test it with basic keys, like "mute"
also give a try to WM_REMOTE_MSG first, instead of WM_REMOTE_DEVICE_MSG