quote:
Originally posted by Felu
Have a look at [UPDATED] Clipboard Functions (that WORK) ;).
thanks! i will have a look later to check if it works.
CookieRevised, i suppose thats not the best way to do that, but what you say is very difficult to do for me, so if the the copy/pasting works fine while im awat from keyboard, its ok.
EDIT: i have tried the code, and it works, but not at all. I think its using a lot the clipboard so after a few messages i cant access to it. I think that maybe if I use a delay it will work fine. My code is something like this:
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);
            var mbot = readClipboard();
            mbot = mbot.toLowerCase();
            while((m == mbot) || (mbot = false)){
                mbot = readClipboard();
                mbot = mbot.toLowerCase();
            }
            ChatWnd.SendMessage(readClipboard());
            contador = contador + 1;
            if(contador == 5){
                clearClipboard();
                contador = 0;
            }
        }    
    }
}
how can i improve it?