Shoutbox

WM_GETTEXT - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: WM_GETTEXT (/showthread.php?tid=72909)

WM_GETTEXT by Dennis Mike on 03-23-2007 at 12:55 AM

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


RE: WM_GETTEXT by markee on 03-23-2007 at 01:03 AM

What are you trying to get the text of?  You might be able to use PlusWnd.GetControlText(ControlId) ?


RE: WM_GETTEXT by Dennis Mike on 03-23-2007 at 01:04 AM

yes i used Handle = PlusWnd.GetControlText(ControlId)


RE: WM_GETTEXT by markee on 03-23-2007 at 01:07 AM

PlusWnd.GetControlText(ControlId) will get you the text.  If you are wanting the handle then you would need PlusWnd.GetControlHandle(ControlId) .


RE: WM_GETTEXT by Dennis Mike on 03-23-2007 at 01:18 AM

i know
this code dont work
vat text = Wnd.SendControlMessage(ControlId, 0xD, 0, 0);
why?


RE: WM_GETTEXT by deAd on 03-23-2007 at 02:20 AM

Just use:

code:
var sText = Wnd.GetControlText("controlname");

RE: WM_GETTEXT by Dennis Mike on 03-23-2007 at 03:37 AM

this control is not supported by that function
Control xsi:type="MenuButtonControl" is not supported by PlusWnd.GetControlText(controlid)


RE: RE: WM_GETTEXT by deAd on 03-23-2007 at 03:51 AM

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?
RE: WM_GETTEXT by Dennis Mike on 03-23-2007 at 03:56 AM

that return 0


RE: WM_GETTEXT by markee on 03-23-2007 at 09:21 AM

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.


RE: WM_GETTEXT by deAd on 03-24-2007 at 12:15 AM

Actually...since SetControlText doesn't work for a menu button control either, the text should always be the same :P