Need Help Sending Post Message( WParam LParam)

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

MarquisEXB
Posts: 42
Joined: Mon Oct 05, 2009 12:04 pm

Need Help Sending Post Message( WParam LParam)

Post by MarquisEXB » Wed Jan 13, 2010 1:20 pm

I'm trying to send a post message from HIP (byremote.au) so that I can automate using my remote control with Media Monkey. However I can't figure out the window class, wparam, lparam, etc.

I have tried sending messages (ie from http://www.codeproject.com/KB/stl/Winam ... play=Print) to TFMainWindow but to no avail, either when active or in the systray.

However, I've been able to send commands to MM by using this ahk code (this will send ctrl-shft-down to the MM window - and will work if MM is in tray only mode), although this is a poor workaround (I would have to create code/hotkey combo for each action).

Any help would be appreciated.

Code: Select all

;AHK script to send ctrl-shft-down to the MM window
#NoTrayIcon
DetectHiddenWindows, On
IfWinExist, ahk_class TFMainWindow
{
	ControlSend, ahk_parent, ^+{down}
	;msgbox Exist
} else {
	;msgbox NotExist
}
Image

Melloware
Posts: 339
Joined: Mon Aug 18, 2008 9:46 am
Location: Philadelphia, PA, US
Contact:

Re: Need Help Sending Post Message( WParam LParam)

Post by Melloware » Thu Jan 14, 2010 8:33 am

Which remote do you own? I have an application called Intelliremote which is similar to HIP but a little more advanced.

We have a MediaMonkey profile that ships with Intelliremote for controlling MM with your remote. Our Winamp profile uses PostMessage to control winamp but our MediaMonkey uses keyboard keystrokes like your AHK script does....

http://www.intelliremote.com

To send CTRL+SHIFT+DOWN from Intelliremote you simply map a remote button to...

Code: Select all

Send("^+{down}", 0)
It uses the same notation as AHK and AutoIt.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
MonkeyTunes - DACP Server for MediaMonkey
Intelliremote - Take Back Control of your HTPC!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Post Reply