What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] RichEditControl - WantReturn

[?] RichEditControl - WantReturn
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. [?] RichEditControl - WantReturn
Ok, so i've set a text box to WantReturn, but how do I get it to perform the same code as clicking the OK button for example?
<Eljay> "Problems encountered: shit blew up" :zippy:
09-12-2007 04:28 PM
Profile PM Find Quote Report
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: [?] RichEditControl - WantReturn
you could use something like
code:
function OngciEvent_EditTextChanged(wnd,ic){
    var str =""+wnd.GetControlText(ic).toLowerCase();
    if(str.search("\n")>=0){ //do thingies
}}
there probably is a nicer way though...
09-12-2007 05:03 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: [?] RichEditControl - WantReturn
that should do fine for now though. thanks :p
<Eljay> "Problems encountered: shit blew up" :zippy:
09-12-2007 05:04 PM
Profile PM 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