What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] ..:Help for scriptfunction!!:..

Pages: (2): « First [ 1 ] 2 » Last »
1 votes - 5 average   [Request] ..:Help for scriptfunction!!:..
Author: Message:
Jumpfreakske
Junior Member
**

Avatar
Hardstyle!!!

Posts: 62
Reputation: -7
31 / Male / Flag
Joined: Jan 2007
O.P. Cool  [Request] ..:Help for scriptfunction!!:..
Hey everyone! I need a little help for the start of my script.

- so when you type a commando ('/hstart' in this case) then
a window appears > the startwindow.

Here a screenshot of it:
[Image: screenshotscriptum9.png]

Now the thing is: If people click on 'site' or forum' link, then
I don't want internet to open on that URL like this code does:

code:
<Control xsi:type="LinkControl" Id="LnkData">
                <Position Top="77" Left="154" Width="55"/>
                <Caption>Site</Caption>
            </Control>

But i want this in case: When they click on that link, a message wil be send:
(When clicking on the link, then sending '!site'

code:
if(Message == "!site")
{
ChatWnd.SendMessage("For more info, go to the site.");
}

What do I have to change in the scripteditor, or in my Wndstart.xml ?

This post was edited on 12-18-2007 at 11:41 PM by Jumpfreakske.
12-18-2007 11:09 PM
Profile E-Mail PM Web Find Quote Report
aNILEator
Skinning Contest Winner
*****

Avatar
...in the wake of the aNILEator

Posts: 3718
Reputation: 90
35 / Male / Flag
Joined: Oct 2003
Status: Away
RE: Help for scriptfunction
This is very dodgy, in the style sense, I would highly expect a link in there to take me to the website.
12-18-2007 11:30 PM
Profile PM Web Find Quote Report
Jumpfreakske
Junior Member
**

Avatar
Hardstyle!!!

Posts: 62
Reputation: -7
31 / Male / Flag
Joined: Jan 2007
O.P. RE: RE: Help for scriptfunction
quote:
Originally posted by aNILEator
This is very dodgy, in the style sense, I would highly expect a link in there to take me to the website.

Wat do you recommend me then ? :)
can anyone help me ?

This post was edited on 12-18-2007 at 11:37 PM by Jumpfreakske.
12-18-2007 11:32 PM
Profile E-Mail PM Web Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: [Request] ..:Help for scriptfunction!!:..
I don't get what you actually want. The link control will do whatever you want it to when clicked. eg:

code:
function OnWndEvent_CtrlClicked(Wnd, ControlId)
{
    if (ControlId == "LnkData")
    {
        //PUT CODE HERE
    }
}
12-19-2007 02:56 AM
Profile PM Find Quote Report
Jumpfreakske
Junior Member
**

Avatar
Hardstyle!!!

Posts: 62
Reputation: -7
31 / Male / Flag
Joined: Jan 2007
O.P. RE: RE: [Request] ..:Help for scriptfunction!!:..
This is the code for opening this 3 links in your browser: for example:

code:
function OnWndAboutEvent_CtrlClicked(Wnd, sControlId){
    if(sControlId == "lnkSite"){
        new ActiveXObject("wscript.shell").run("http://msgpluslive.net");
    }
    else if(sControlId == "lnkForum"){
        new ActiveXObject("wscript.shell").run("http://shoutbox.menthix.net");
    }
    else if(sControlId == "lnkContact"){
        new ActiveXObject("wscript.shell").run("http://shoutbox.menthix.net/contact");
    }
}

But instead of opening this links in your browser,
I want people, when they click on this 3 links' they reveive
a message in their chatwindow that says 'For more information go to shoutbox.menthix.net'

This post was edited on 12-19-2007 at 09:54 AM by Jumpfreakske.
12-19-2007 09:27 AM
Profile E-Mail PM Web Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: [Request] ..:Help for scriptfunction!!:..
It's not possible... unless you get them to add some kind of bot that responds to a command and get the command sent to the bot.

If you meant that you just wanted text put into a text area, I don't know if thats possible using interop.call with some dll.

This post was edited on 12-19-2007 at 10:11 AM by davidpolitis.
12-19-2007 09:58 AM
Profile PM Find Quote Report
Jumpfreakske
Junior Member
**

Avatar
Hardstyle!!!

Posts: 62
Reputation: -7
31 / Male / Flag
Joined: Jan 2007
O.P. RE: RE: [Request] ..:Help for scriptfunction!!:..
quote:
Originally posted by davidpolitis
It's not possible... unless you get them to add some kind of bot that responds to a command and get the command sent to the bot.
not possible ? :(

But on the script 'Screenshot Sender' when you click in
the scriptmenu on 'Share script', en message is also automaticly
be send to the contactperson isn't it ?

quote:
Hey, you should check out this awesome script called Screenshot Sender 4 (http://ScreenshotSender.com) for Messenger Plus! Live (http://MsgPlusLive.net).

The same with 'Ultimate script'. When you click on 'Share script, this message wil be send.

quote:
I'm using The UltimateScript, and my wlm have a lot of new features, if you want to try just go here : http://www.toutmessenger.info/ultimatescript/en/ultimatescript/



That's just the same I want to do, but my link isn't in the scriptmenu like screenshot sender,
but in a window (WndStart.xml)

This post was edited on 12-19-2007 at 10:13 AM by Jumpfreakske.
12-19-2007 10:10 AM
Profile E-Mail PM Web Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: [Request] ..:Help for scriptfunction!!:..
Oh... you just want something sent to the convo?
12-19-2007 10:12 AM
Profile PM Find Quote Report
Jumpfreakske
Junior Member
**

Avatar
Hardstyle!!!

Posts: 62
Reputation: -7
31 / Male / Flag
Joined: Jan 2007
O.P. RE: [Request] ..:Help for scriptfunction!!:..
Yes , indead, but I don't now the code of it

I have made a Jscript File named as: WndStart.handler,
but there needs something to be changed

Maybe I have to change this:
code:
new ActiveXObject("wscript.shell").run("http://shoutbox.menthix.net");

Into this:
code:
ChatWnd.SendMessage("You want to visit the site: http://www.............com");

This post was edited on 12-19-2007 at 10:17 AM by Jumpfreakske.
12-19-2007 10:14 AM
Profile E-Mail PM Web Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: [Request] ..:Help for scriptfunction!!:..
Try this:

code:
function OnEvent_MenuClicked(MenuId, Location, ChatWnd)
{
if (MenuId == "MenuID")
{
  for(var enumerator = new Enumerator(ChatWnd.Contacts) ; !enumerator.atEnd(); enumerator.moveNext())
  {
   var Contact = enumerator.item();
   var sChatWnd = Messenger.OpenChat(Contact.Email);
   sChatWnd.SendMessage("Message Here");
  }
}
}

I understand that English obviously isn't your first language, but please try to be clearer in what you want next time. Thanks.

This post was edited on 12-19-2007 at 10:24 AM by davidpolitis.
12-19-2007 10:21 AM
Profile 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