Find Messenger Hwnd
Does someone knows how can I 开发者_如何学Pythonfind the HWND for all the msn messenger currently opened conversations windows?
OR how can i find the HWND for the textbox whih is currently focused?
TY
You can use the Spy++ tool which comes with Visual Studio to get the class name of any window of any running program. You can then pass that class name to FindWindow() to get the handle of the appropriate window.
I checked the Windows Live Messenger installed on my system, the conversation windows have the class name: "IMWindowClass".
精彩评论