What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » CTRL+C | CTRL+V

CTRL+C | CTRL+V
Author: Message:
DyLaK
New Member
*


Posts: 3
Joined: Mar 2007
O.P. RE: CTRL+C | CTRL+V
finally i fixed it with a delay function. messenger freezes during that delay, but i only want it when im away, so it works perfect for me :)

here is the code:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, User, Message, Kind) {
    if (botActive[ChatWnd.Handle] == true) {
        if (Kind == 1 && User != Messenger.MyName) {
            var m = Message.toLowerCase();
            writeClipboard(m);
            pause(500);
            var mbot = readClipboard();
            mbot = mbot.toLowerCase();
            ChatWnd.SendMessage(mbot);
            clearClipboard();
        }
    }
}

function pause(milisegundos){
    var date = new Date();
    var curDate = null;
    do{
        curDate = new Date();
    } while (curDate - date < milisegundos);
}
03-29-2007 12:25 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
CTRL+C | CTRL+V - by DyLaK on 03-28-2007 at 12:41 PM
RE: CTRL+C | CTRL+V - by Felu on 03-28-2007 at 02:43 PM
RE: RE: CTRL+C | CTRL+V - by DyLaK on 03-28-2007 at 06:38 PM
RE: RE: RE: CTRL+C | CTRL+V - by CookieRevised on 03-28-2007 at 11:48 PM
RE: CTRL+C | CTRL+V - by CookieRevised on 03-28-2007 at 02:48 PM
RE: CTRL+C | CTRL+V - by DyLaK on 03-29-2007 at 12:25 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