PDA

View Full Version : How to send Posmessage to a window



Ron
October 13th, 2002, 12:55 PM
Or use the sendmessage plugin.

Ron
October 13th, 2002, 12:55 PM
MessageNumber = WM_COMMAND = 0x0111 (hex) = 273
wParam = 0xc364 (hex) = 50020
lParam = 0 = 0


So fill in 273 and 50020 and 0 in the sendmessage plugin.

<font size=-1>[ This Message was edited by: RonB on 2001-12-14 09:17 ]</font>

Ron
October 13th, 2002, 12:55 PM
ron@girder.nl

thats me :smile:

SteveV
October 13th, 2002, 12:55 PM
On 2001-12-13 20:11, hijacker wrote:
Sorry dudes but I don't know where to put WM_COMMAND:0xc364:

You'll need to DL and install the send message plugin (http://www.girder.nl/download.php?Link=9) and install it in the ...Girder3PluginsSoftware folder. Launch Girder, select File->Settings->Action Plugins (tab). Check the SendMessage 1.51 checkbox.


Next created a command and select the plugins tab->SendMessage 1.51->Settings button. Enter the appropriate message number along with the wparam and lparam fields and click OK. Next click the target button and drag the "Spy glass" icon on the window you want to send the message to. This will fill the "Name", "Class", and "Executable" fields with info for the window you're trying to target. You should be able to uncheck them all except for the one labeled executable. Click apply and then OK and you should be in business.

Good luck -- Steve

epsylon3
October 13th, 2002, 12:55 PM
<WIN>+R (Execute Shortcut)

then


rundll32 user32.dll,SendMessageA <Handle>,<Command_Constant>,<WPARAM>,<LPARAM>

hijacker
October 13th, 2002, 12:55 PM
I have to send this postmessage code to a defined window:

WM_COMMAND:0xc364:0

Where can I do this.

hijacker
October 13th, 2002, 12:55 PM
Sorry dudes but I don't know where to put WM_COMMAND:0xc364:0 and tell him to send this to btv.exe window.

I am curently using uIce program for IR commands and it is very easy to tell this there. I just choose Postmessage and tell him the code and windows.

hijacker
October 13th, 2002, 12:55 PM
Well. I donwloaded the plugin but again do not know what to do. what is Lparam. I have to send this message for every command.

hijacker
October 13th, 2002, 12:55 PM
Thanks. That did the trick. I made codes for BorgTV 2.55 TV viewing applicaton. To whome I can send the exported group for this application? You can freely post it on your page.

Amok
October 13th, 2002, 12:55 PM
I need to do this, i got the message plug in

// Find the Album List window
HWND hWndAL = FindWindow("Winamp AL", NULL);

// Play an album
SendMessage(hWndAL, WM_USER, 100, nAlbumToPlay);

What values to put in these 3 fields????
Message number:
Wparam:
Lparam:
Thanks

Amok
October 13th, 2002, 12:55 PM
Figured It Out
Sorry 4 wasting space . .
The info is for the winamp album list plugin
// Play an album
SendMessage(hWndAL, WM_USER, 100, nAlbumToPlay)

Message number: 1024
Wparam: 100
Lparam: Number Of ablum As Show



<font size=-1>[ This Message was edited by: Amok on 2001-12-29 12:53 ]</font>

Treetop
November 9th, 2004, 08:57 AM
Okay... I give up :evil:

Im trying to use Spy++ (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcug98/html/_asug_home_page.3a_.spy.2b2b.asp) to see the windows messages sent to zoomplayer. Looking at the gml file in the downloads section, the command for the play/pause button is:

Message Number: 32817
wParam: 80
lParam: 1

In hex (using MS calc.)

MN: 8031
wP: 50
LP: 1

Within Spy++, I am only able to find the wParam = 50. Where can I find the message number? The lParam is also off: 190001 (??)

Using the "targetting" cross-hairs to find the window I receive this message (this is sent). Message sent via Keyboard shortcut.

message:0xBD00 [User-defined:WM_USER+47360]wParam:00000050 lParam:00190001

Looking at the Message Properties, Im getting:

Window Handle: 00110654
Nesting Level 568
Message: BD00 (sent) WM_USER+47360
Params are the same as above.

I do not get a WM_Command message anywhere in the message window.

Being that I don't know what Im doing, I am just trying to find the same message that is in the premade gml file. I figure that if I can get one message correct, then it will all fall into place... :roll:

I also looked at using Winspector (http://www.windows-spy.com/), but Spy++ seems a little easier to learn (def. better docs).

Any help with this is greatly appreciated.

Cheers,
Treetop