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:
#BG
New Member
*

Avatar

Posts: 7
Joined: Jul 2010
O.P. Huh?  Edit text while typing
I'm pretty much a beginner in scripting. I'd like to make to make a script that changes one or more characters to an other one in the chat window while typing. Should I use OnEvent_ChatWndEditKeyDown to monitor every key I press? Can I use ChatWnd.EditText to delete just what I wrote, and put something else in it's place? This is what I've got so far:

code:
function OnEvent_ChatWndEditKeyDown(pChatWnd, nKeyCode, bCtrl, bShift)
{
  // Declare a variable to hold the value of the 2 virtual key
  var VK_2 = 0x32;
       
  // Check if the key pressed are Shift and 2
  if (nKeyCode == VK_2 && bShift == true)
  {
    // Validate that we can type
    if (pChatWnd.EditChangeAllowed == true)
    {
      // Gain access to the contact object
      var oContact = new Enumerator(pChatWnd.Contacts).item();

      // Validate that the contact is not blocked and that they are on the MSN network
      if (oContact.Blocked == false && oContact.Network == NETWORK_MSN)
      {
          ChatWnd.EditText = ""; // Now how should I use it?
      }
    }
  }
}

Thanks for any help!
03-13-2011 06:59 PM
Profile PM 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