SendMessage and DvbDream

Module API help / support section for programmers.

Moderators: Dreamer, FredB, X05

Isch
Just popping in
Posts: 4
Joined: Sun Jan 13, 2008 1:14 pm

SendMessage and DvbDream

Postby Isch » Sun Feb 10, 2008 7:37 am

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

TT-budget S2-3200
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Mon Feb 11, 2008 8:12 am

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
DVB Dream - because I have to dream about having time to code it
Isch
Just popping in
Posts: 4
Joined: Sun Jan 13, 2008 1:14 pm

Postby Isch » Mon Feb 11, 2008 9:54 am

Hi rel,

thanks for your reply.

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

Isch
TT-budget S2-3200
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Mon Feb 11, 2008 1:11 pm

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
DVB Dream - because I have to dream about having time to code it

Return to “Module / Plugin Programming”

Who is online

Users browsing this forum: No registered users and 1 guest