code: // Send ONLY to this messenger
// if you need to find any other window, replace "MsnMsgrUIManager" with the class of
// the window you need, and change the SendMessageW interop call to the function you want.
var tIDCurrent = Interop.Call('Kernel32', 'GetCurrentThreadId');
var hWnd = 0;
while (hWnd = Interop.Call('User32', 'FindWindowExW', 0, hWnd, 'MsnMsgrUIManager', 0))
if (Interop.Call('User32', 'GetWindowThreadProcessId', hWnd, 0) === tIDCurrent) {
Interop.Call('User32', 'SendMessageW', hWnd, WM_COPYDATA, 0, copyDataStruct);
break;
}
This post was edited on 09-06-2006 at 11:49 PM by CookieRevised.
Media PSM - by Spunky on 09-06-2006 at 05:08 PM RE: Media PSM - by Felu on 09-06-2006 at 05:13 PM RE: Media PSM - by Zeh on 09-06-2006 at 05:17 PM RE: Media PSM - by Spunky on 09-06-2006 at 06:42 PM RE: Media PSM - by -dt- on 09-06-2006 at 10:42 PM RE: RE: Media PSM - by CookieRevised on 09-06-2006 at 11:41 PM