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

Edit text while typing
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Edit text while typing
It's as simple as:
js code:
ChatWnd.EditText_ReplaceSel("my replacement");
return true;
When Shift+2 is pressed, the current selection is replaced with whatever you pass to that method. When the user hasn't selected anything but is simply typing, Plus! will treat this as a selection at the current position with zero length. Therefore when you call EditText_ReplaceSel, your replacement will be inserted at the current position. After replacing the selection, simply return true to make Plus! and Messenger stop processing this key. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
03-13-2011 10:38 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Edit text while typing - by #BG on 03-13-2011 at 06:59 PM
RE: Edit text while typing - by matty on 03-13-2011 at 07:14 PM
RE: Edit text while typing - by #BG on 03-13-2011 at 07:45 PM
RE: Edit text while typing - by Matti on 03-13-2011 at 10:38 PM
Define ChatWnd - by #BG on 03-14-2011 at 01:21 AM
RE: Edit text while typing - by matty on 03-14-2011 at 02:12 AM


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