What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » WM_GETTEXT

Pages: (2): « First [ 1 ] 2 » Last »
WM_GETTEXT
Author: Message:
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
34 / Male / –
Joined: Jan 2007
O.P. WM_GETTEXT
how can i get the text?
i try with
var WM_GETTEXT = 0xD

var text = Interop.Call('user32', 'SendMessageA', Handle,  WM_GETTEXT, 0, 0)
but it dont work

This post was edited on 03-23-2007 at 01:09 AM by Dennis Mike.
03-23-2007 12:55 AM
Profile PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: WM_GETTEXT
What are you trying to get the text of?  You might be able to use PlusWnd.GetControlText(ControlId) ?
[Image: markee.png]
03-23-2007 01:03 AM
Profile PM Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
34 / Male / –
Joined: Jan 2007
O.P. RE: WM_GETTEXT
yes i used Handle = PlusWnd.GetControlText(ControlId)
03-23-2007 01:04 AM
Profile PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: WM_GETTEXT
PlusWnd.GetControlText(ControlId) will get you the text.  If you are wanting the handle then you would need PlusWnd.GetControlHandle(ControlId) .
[Image: markee.png]
03-23-2007 01:07 AM
Profile PM Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
34 / Male / –
Joined: Jan 2007
O.P. RE: WM_GETTEXT
i know
this code dont work
vat text = Wnd.SendControlMessage(ControlId, 0xD, 0, 0);
why?

This post was edited on 03-23-2007 at 01:19 AM by Dennis Mike.
03-23-2007 01:18 AM
Profile PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: WM_GETTEXT
Just use:

code:
var sText = Wnd.GetControlText("controlname");
03-23-2007 02:20 AM
Profile PM Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
34 / Male / –
Joined: Jan 2007
O.P. RE: WM_GETTEXT
this control is not supported by that function
Control xsi:type="MenuButtonControl" is not supported by PlusWnd.GetControlText(controlid)
03-23-2007 03:37 AM
Profile PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: RE: WM_GETTEXT
quote:
Originally posted by Dennis Mike
this control is not supported by that function
Control xsi:type="MenuButtonControl" is not supported by PlusWnd.GetControlText(controlid)

then WM_GETTEXT probably won't work either, as Plus! uses that to get the text ;)

EDIT: What did it return when you tried?

This post was edited on 03-23-2007 at 03:51 AM by deAd.
03-23-2007 03:51 AM
Profile PM Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
34 / Male / –
Joined: Jan 2007
O.P. RE: WM_GETTEXT
that return 0
03-23-2007 03:56 AM
Profile PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: WM_GETTEXT
If you are parsing the text to the MenuButton then can't you just store the string somewhere?  If you aren't parsing it then you can always just use the ActiveXObject Microsoft.XMLDOM (more information can be found here) to get the string in the node in the xml document.  I hope you can use one of these methods to fix your situation.

Sorry if this doesn't work, I haven't used that control before unfortunately.

This post was edited on 03-23-2007 at 09:21 AM by markee.
[Image: markee.png]
03-23-2007 09:21 AM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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