What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How can I ?? please enter

Pages: (2): « First « 1 [ 2 ] Last »
How can I ?? please enter
Author: Message:
sayed
Junior Member
**


Posts: 17
Joined: Jan 2010
O.P. RE: How can I ?? please enter
How ? And what the meaning
01-05-2010 07:05 PM
Profile E-Mail PM Find Quote Report
robert_dll
Full Member
***

Avatar

Posts: 393
Reputation: 8
– / Male / Flag
Joined: Aug 2008
RE: How can I ?? please enter
In English, Plus!-Preferences & Options-Conversations-Quick texts
You can set "quick texts" and define a command for them to be sent.
01-05-2010 07:10 PM
Profile PM Web Find Quote Report
sayed
Junior Member
**


Posts: 17
Joined: Jan 2010
O.P. RE: How can I ?? please enter
No . I've been making script for msgplus and matty explain what I mean .. look at his post and reply
01-05-2010 07:18 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How can I ?? please enter
js code:
var oChatWnd;

function OnEvent_MenuClicked(sMenuId, nLocation, pOirgin) {
    if (sMenuId === 'MyMenu') {
        if (nLocation === MENULOC_CHATWND) {
            oChatWnd = pOrigin; // this gives you access to the chat window so you can use SendMessage
        }
    }
}

This post was edited on 01-06-2010 at 01:57 PM by matty.
01-05-2010 07:21 PM
Profile E-Mail PM Find Quote Report
sayed
Junior Member
**


Posts: 17
Joined: Jan 2010
O.P. RE: How can I ?? please enter
thanx but can you give the full code with SendMessage function ?

this is my code

code:
function OnWndMainEvent_CtrlClicked(Wnd, ControlId) {
    if(ControlId == "ButtonSend") {
        vari[0] = Wnd.GetControlText("var1");
        vari[1] = Wnd.GetControlText("var2");
        Wnd.Visible = false;
        Wnd.SendMessage("hi");
    }
}

is this correct ?
01-05-2010 07:28 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How can I ?? please enter
quote:
Originally posted by sayed
this is my code

code:
function OnWndMainEvent_CtrlClicked(Wnd, ControlId) {
    if(ControlId == "ButtonSend") {
        vari[0] = Wnd.GetControlText("var1");
        vari[1] = Wnd.GetControlText("var2");
        Wnd.Visible = false;
        Wnd.SendMessage("hi");
    }
}

is this correct ?
No,

The variable Wnd defines the Plus! window not the conversation window.
01-05-2010 08:47 PM
Profile E-Mail PM Find Quote Report
sayed
Junior Member
**


Posts: 17
Joined: Jan 2010
O.P. RE: How can I ?? please enter
whats the variable of chat window ?
01-06-2010 10:33 AM
Profile E-Mail PM Find Quote Report
sayed
Junior Member
**


Posts: 17
Joined: Jan 2010
O.P. RE: How can I ?? please enter
please, anyone help me ?
01-06-2010 11:51 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How can I ?? please enter
quote:
Originally posted by sayed
whats the variable of chat window ?
There isn't one. You need to assign it using the code I showed you from the OnEvent_MenuClicked function...
01-06-2010 01:56 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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