What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help required with Bead Draw Script

Help required with Bead Draw Script
Author: Message:
Dragony
New Member
*


Posts: 1
Joined: Jun 2010
O.P. Huh?  Help required with Bead Draw Script
Hi all. I'm an absolute newbie when it comes to scripting and Messenger Plus. I would like to make a script that when you type /beaddraw makes a little image of a red, white (with black outline), blue or yellow circle chosen at random appear in the chat window, about the size of the standard emote faces. Does anyone know how to do this please? Thankyou.
06-07-2010 11:26 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help required with Bead Draw Script
As far as I am aware there isn't away to interact with the "handwritting" programmatically that is made available in Windows Live Messenger.
06-07-2010 01:02 PM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
RE: Help required with Bead Draw Script
You could make custom emotions for each, with IDs like %bd:r%, %bd:w%, %bd:b% and %bd:y%, and then make a script that sends %bd:?%, where ? is replaced by a random letter (maybe using Math.random() and an array).
Javascript code:
var Letters = ["r", "w", "b", "y"];
 
function OnChatWndSendMessage(PlusWnd, Message)
{
    if (Message.toLowerCase() === "/beaddraw")
    {
        return "%bd:" + Letters[Math.floor(Math.random() * 3)] + "%";
    }
}

06-07-2010 06:08 PM
Profile E-Mail 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