What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Get Handle of Textbox from non-plus window.

Get Handle of Textbox from non-plus window.
Author: Message:
b0rna
New Member
*


Posts: 11
Joined: Jun 2006
O.P. Get Handle of Textbox from non-plus window.
yoooooooo,

im trying to set the text field of the mobile chat window...
with some help from irc i got this function which should set the text field given the correct handle for the textbox...

this window is not recognized by Plus and no Plus functions can be used to manipulate it...only through the windows api.

Interop.Call("User32","SendMessageW", hwnd, WM_SETTEXT, 0, "xxx");

[Image: mobile.JPG]

if it helps, the text box is active when the window opens, that means the cursair is flashing and ready to be typed in.

thx.

edit: maybe this will help http://www.codeproject.com/win32/manipwindows.asp

This post was edited on 08-18-2006 at 06:10 AM by b0rna.
08-18-2006 04:43 AM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Get Handle of Textbox from non-plus window.
If the cursor is active, you could just try using SendKeys sort of thing, but thats a bit messy.  An example is:  Matty's reply to hWnd of IMWindowClass chat input box

I dont think you can directly use FindWindow and FindWindowEx to retrieve the handle, as Messenger windows are all wrapped in a DirectUIHWND or something.

I *think* you can retireve it using Active Accesability, but if all want the handle for is to set the text, then it will definatley work, you can see this example in Visual Basic:  Matty's reply to Active Accessibility for incoming messages
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
08-18-2006 07:11 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On