My remote software and DD API

Module API help / support section for programmers.

Moderators: Dreamer, FredB, X05

sashaluda
Not too shy to talk
Posts: 11
Joined: Mon Oct 02, 2006 7:21 am

My remote software and DD API

Postby sashaluda » Mon Oct 16, 2006 12:27 pm

Hi!
I need to send a message to DD when it's minimized.
I can't understand the synthax. My remote software says:

MessageWin(msg, wparam, lparam, window)
Sends message to the window with given name.
OR
MessageApp(msg, wparam, lparam, class [, window])
Sends message to the app's window with class and windowname.

I've checked:
"ChannelDown": MessageWin(WM_REMOTE_MSG, RMT_UP, 0,"Tfmain")
-- doesn't work

"ChannelDown": MessageWin("WM_REMOTE_MSG", "RMT_UP", 0,"Tfmain")
-- doesn't work

I can see via special info window that the button is pressed and the string is executed. So, the remote and soft is ok (it also works to launch the dreamstart.exe but is freezes the DD after a few switchings).
Do I need to type in the numbers instead of variables? I'm not sure...
Please correct my synthax.

Thank you for help.
Sasha

User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Tue Oct 17, 2006 12:13 am

I can't understand the synthax. My remote software says:


I can't understand either, what software/script/language is it ?

better check that software's samples, help files .


------------------------
Window Message:

WM_REMOTE_MSG = WM_USER + 322;
= $0400 + 322 = 1346 (decimal message code)

------------------------
Remote Message:

RMT_UP = $0000000D;
= 13 (decimal button code)

------------------------------

MessageWin(1346 , 0, 13, "write exact caption here , i.e. DVB Dream v1.2e .....device name ...")

Remove the modules if you will use the following method. "Tfmain" is also used by modules.
MessageApp(1346 , 0, 13, "Tfmain")
DVB Dream - because I have to dream about having time to code it
sashaluda
Not too shy to talk
Posts: 11
Joined: Mon Oct 02, 2006 7:21 am

Postby sashaluda » Tue Oct 17, 2006 6:46 am

I can't understand the synthax. My remote software says:


I can't understand either, what software/script/language is it ?

better check that software's samples, help files .


------------------------
Window Message:

WM_REMOTE_MSG = WM_USER + 322;
= $0400 + 322 = 1346 (decimal message code)

------------------------
Remote Message:

RMT_UP = $0000000D;
= 13 (decimal button code)

------------------------------

MessageWin(1346 , 0, 13, "write exact caption here , i.e. DVB Dream v1.2e .....device name ...")

Remove the modules if you will use the following method. "Tfmain" is also used by modules.
MessageApp(1346 , 0, 13, "Tfmain")
YES!!! Thanks! I'm very happy although it's a complete falure :(
This is why:
MessageWin(1346 , 0, 13, "DVB*") -- works!!!
MessageApp(1346 , 0, 13, "Tfmain") -- works!!!
BUT only when DD isn't minimized :(
Although, now I know how to program it without using i.e. PressKey(VK_DOWN) command. Now the next question is:
Why MessageApp(1346 , 0, 13, "Tfmain") doesn't work?
I think the answer is obvious -- the "class" name must be different.

.... after some time ...

Well, it works now (althught no use anyway)! As soon as I turned of "minimize to tray" option -- messagewin starts to work, but it changes the foucus to DD :(
besides that -- it's freezing anyway, so I'll go again to bug reports section to explain the problem.

Thanks for your help
Sasha

Return to “Module / Plugin Programming”

Who is online

Users browsing this forum: No registered users and 1 guest