robinbobin ([personal profile] robinbobin) wrote2005-08-25 02:54 pm

Send Message

А у кого есть утилитка которой можно сказать hWnd окна и номер msg. и шоб она засунула его туда?

[identity profile] qth.livejournal.com 2005-08-25 03:51 pm (UTC)(link)
закинул на http://www.nattyware.com/bin/wndspy.zip

[identity profile] robinbobin.livejournal.com 2005-08-25 04:32 pm (UTC)(link)
kull!

eto kruche dazhe toj, sho ya napisal

while (1) {
printf ("\nhWnd? (hex)");
scanf ( "%x", &hWnd);
dwRes = SendMessageW ( hWnd, nMsg, 0, 0);
//dwRes = SendMessageW ( HWND_BROADCAST, nMsg, 0, 0);
printf ( "\nHwnd is %08X, lRes is %X", hWnd, dwRes);
Sleep (5*1000);
}