Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Msn 2009 & Personal message change (https://www.delphipraxis.net/128236-msn-2009-personal-message-change.html)

Razor 26. Jan 2009 18:20


Msn 2009 & Personal message change
 
I converted this code from C# and i guess it doesn't work so people please test it i need it for my media player.
It doesn't work in WLM 2009??!!

Delphi-Quellcode:
type TCopyDataStruct = packed record
    dwData: DWORD; //up to 32 bits of data to be passed to the receiving application
    cbData: DWORD; //the size, in bytes, of the data pointed to by the lpData member
    lpData: Pointer; //Points to data to be passed to the receiving application. This member can be nil.
end;

procedure tform3.SendData();
const
WM_COPYDATA = 74;
var
  stringToSend : WideString;
  copyDataStruct : TCopyDataStruct;
  receiverHandle : THandle;
  res : integer;
begin
  stringToSend := 'fg';
  copyDataStruct.dwData := 1351; //use it to identify the message contents
  copyDataStruct.cbData := (1 + Length(stringToSend))*2;
  copyDataStruct.lpData := PChar(stringToSend);

  receiverHandle := FindWindowex(0,0,pchar('MsnMsgrUIManager'),nil);
  if receiverHandle = 0 then
  begin
    ShowMessage('CopyData Receiver NOT found!');
    Exit
  end
    else
     SendMessage(receiverHandle,WM_COPYDATA, 0, Integer(@copyDataStruct));

Razor 27. Jan 2009 14:03

Re: Msn 2009 & Personal message change
 
Ah this is making me sick and i am afraid with this its killing the forum what i mean is that its been 22 Views and no reply
Everytime i make a topic...Is really english the problem?

Larsi 27. Jan 2009 14:04

Re: Msn 2009 & Personal message change
 
No English isn't the problem. I've got the same problem :stupid:

Maybe that helps you: http://www.delphipraxis.net/internal...&highlight=msn

Phoenix 27. Jan 2009 14:13

Re: Msn 2009 & Personal message change
 
Hi Razor,

no, it's not the english language that is the problem. It is the way you are asking and youre expectations.

1.) You are not allowed to push a thread until 24 hours are over. The original post was from yesterday, 20 minutes after 7 pm. So before 20 minutes after 7 pm today it's not allowed to push.

2.)

Zitat:

Zitat von Razor
I converted this code from C# and i guess it doesn't work so people please test it i need it for my media player.
It doesn't work in WLM 2009??!!

Hey, come on. Honestly.
You guess it doesn't work? How about proofing it?
And It doesn't work is not a good description of the problem. What is it, that's not working? Can't you connect to MSN? Are you getting exceptions? Do you receive none / invalid / correct return values?

We need more information to help you. With the information value of your post (which is near to zero!) nobody can help you. And then you seriously wonder, why nobody is answering?

Razor 27. Jan 2009 14:15

Re: Msn 2009 & Personal message change
 
Its supposed to send a message to msnmsgr.exe you find the window thus get its handle and then send it.Thats it WM_COPYDATA ever of heard of it?

Also i am used to this kind of replys.No one made a Core 2 quad core temperature reader until i did.So this how stuff goes around here.


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:50 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz