473,383 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Msn Plus! Live scripting..

4
Hello all.

Well, Since I have this Msn Plus! Live, I was very exited about the scripts system. I was also very obsessed with scripting, So I decided to try learning the Msn Plus! Live scripting.

It's basicly JavaScript, But offcourse with special Msn Events, Objects and Interface etc...

Now; I was wondering if there are any Msn Plus! Live Scripters out here? Because I seriously need some help on my First *Real* Script!


I am trying to make an *Msn Locker:
A script that when somebody logs in on my pc with another email adress than mine, He will have to enter the password that the msn is locked with, otherwise he will log out immediatly :)
(Yes I Know, just by deleting it from my scripts file in the Msn Plus! Live file you can just log in, but my brothers don't know)

There is also a menu added; when you click on the Msn Locker menu you will see 2 choices: About and Set Password.
If you click the "Set Password", A window pops up where you can enter the password you want your msn to be locked with

Atm it's only ment for my pc, but when that works I will make so that you can enter your admin email adress, the email adress that doesnt need password provided

If you click the "About", A messagebox pops up to tell you I made the script


But;
When logging in with a wrong e-mail adress, clicking the menu to set a password or clicking the "about" button, nothing happens.. :(
Th only thing that works is a confirmation message when I log on with my email adress..

So, I would just want to ask is there is anyone who could possibly help me? :)
I'll post the 3 files I wrote underneeth (The Script, ScriptInfo.xml and ConfWnd.xml)



The Script
Expand|Select|Wrap|Line Numbers
  1. var password;
  2.  
  3. function OnEvent_Signin(Email)
  4. {
  5.     if (Email == "g*****************n@hotmail.com")
  6.     {
  7.     var Message = "Welcome Gust, Email Approved";
  8.     Message = MsgPlus.RemoveFormatCodes(Message);
  9.     MsgPlus.DisplayToast("", Message);
  10.     }
  11.  
  12.     else
  13.     {
  14.  
  15.     var x = MsgPlus.CreateWnd("ConfWnd.xml","WndConf");
  16.  
  17. // this is inside the other function.        
  18. function OnConfWndEvent_CtrlClicked(PlusWnd,ControlId)
  19. {
  20.     switch(ControlId)
  21.     {
  22.         case "ok":
  23.         {
  24.             if (password != "")
  25.             {
  26.                  if (x.GetControlText("ConfPass") == password)
  27.                 {
  28.                 var Msgconf = "Welcome Guest, You're Welcome to Use This Msn";
  29.                 Msgconf = MsgPlus.RemoveFormatCodes(MsgConf);
  30.                 MsgPlus.DisplayToast("", Msgconf);
  31.                 PlusWnd.Close(1);
  32.                 }
  33.                 else
  34.                 {
  35.                 Messenger.Signout();
  36.                 }
  37.             }
  38.             else
  39.             {
  40.             MsgPlus.DisplayToast("", "No password has been set, acces granted!")
  41.             }
  42.         break;
  43.         }
  44.         case "cancel":
  45.         {
  46.         Messenger.Signout();
  47.         break;
  48.         }
  49.      }
  50.  
  51.     }
  52. }
  53. }
  54.  
  55.  
  56. function OnEvent_MenuClicked(MenuItemId,Location,OriginWnd)
  57. {
  58.  
  59.     switch(MenuItemId)
  60.     {
  61.     case "SetPass":
  62.         {
  63.         var PassWnd = MsgPlus.CreateWnd("ConfWnd.xml","PassWnd")
  64.  
  65.             function OnConfWndEvent_CtrlClicked(ConfWnd,ControlId)
  66.             {
  67.                 switch(ControlId)
  68.                 {
  69.                 case "enter":
  70.                     {    
  71.                         if (PassWnd.GetcontrolText("PassWord") != "")
  72.                         {
  73.                         var password = PassWnd.GetControlText("PassWord");
  74.                         }
  75.  
  76.                         else
  77.                         {
  78.                         MsgPlus.DisplayToast("", "Please Set A Password.");
  79.                         }
  80.                         break;
  81.                     }
  82.                 }
  83.             }
  84.         break;
  85.         }
  86.  
  87.     case "About":
  88.         {
  89.         Messenger.DisplayToast("","Msn Locker1.0 By Gushe©");
  90.         break;
  91.         }
  92.  
  93.     }
  94. }
  95.  


[size=16]ConfWnd.xml[/size]
Expand|Select|Wrap|Line Numbers
  1. <Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.  xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">
  3.  
  4.     <Window Id="Wndconf" Version="1">
  5.         <TitleBar>
  6.             <Title>
  7.                 <Text>Confirmation Window!</Text>
  8.             </Title>
  9.         </TitleBar>
  10.         <Position Width="180" Height="75"/>
  11.         <DialogTmpl/>
  12.         <Control xsi:type="StaticControl" Id="ConfPass">
  13.             <Position Top="36" Width="60" Left="9"/>
  14.             <Caption>Enter Password:</Caption>
  15.         </Control>
  16.         <Control xsi:type="ButtonControl" Id="ok">
  17.             <Position Top="70" Width="50" Left="30"/>
  18.             <Caption>Enter</Caption>
  19.         </Control>
  20.         <Control xsi:type="ButtonControl" Id="cancel">
  21.             <Position Top="70" Width="50" Left="100"/>
  22.             <Caption>Cancel</Caption>
  23.         </Control>
  24.     </Window>
  25.  
  26.     <Window Id="SetPass" Version="1">
  27.         <TitleBar>
  28.             <Title>
  29.                 <Text>Set Your Password</Text>
  30.             </Title>
  31.         </TitleBar>
  32.         <Position Width="180" Height="75"/>
  33.         <DialogTmpl/>
  34.         <Control xsi:type="StaticControl" Id="PassWord">
  35.             <Position Top="36" Width="60" Left="9"/>
  36.             <Caption>Set Password:</Caption>
  37.         </Control>
  38.         <Control xsi:type="ButtonControl" Id="enter">
  39.             <Position Top="70" Width="50" Left="80"/>
  40.             <Caption>Accept</Caption>
  41.         </Control>
  42.     </Window>
  43. </Interfaces>
  44.  

[size=16]Scriptinfo.xml[/size]
Expand|Select|Wrap|Line Numbers
  1. <ScriptInfo xmlns="urn:msgplus:scripts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.  xsi:schemaLocation="urn:msgplus:scripts PlusScripts.xsd">
  3.  
  4.   <Information>
  5.     <Name>Msn Blocker</Name>
  6.     <Description>Logs out unwanted users on your pc.</Description>
  7.     <Author>Gushe</Author>
  8.     <Version>1.0</Version>
  9.   </Information>
  10.  
  11.     <ScriptMenu>
  12.     <MenuEntry Id="SetPass">Set New Password</MenuEntry>
  13.     <Separator/>
  14.     <MenuEntry Id="About">About..</MenuEntry>
  15.     </ScriptMenu>
  16.  
  17. </ScriptInfo>
  18.  

So.. That was it! :)
I hope there is any help out there!



Greetz & Thanx,
~Gushe
Dec 10 '07 #1
5 1912
acoder
16,027 Expert Mod 8TB
Is that the whole script? If it is, you haven't closed OnEvent_Signin properly.

This isn't really JavaScript, so I don't know how much help you'll get with this.
Dec 11 '07 #2
Gushe
4
Yup that's pretty much the whole script ;)

Strange; Because the script debugger didn't give any errors..


And I asked where to place this.. and they said perhaps Javascript.. Where would I have to place this to get more help..? I searched like the whole internet..


Greetz,
~Gushe
Dec 11 '07 #3
acoder
16,027 Expert Mod 8TB
I see that the function is within the else block.

Is there no API for this?
Dec 12 '07 #4
Gushe
4
I Don't really understand what "API" is..

I just made it in the Standard Msn Plus! Live Scripting program.. It's included with the Msn Plus! Live.. And they have made sort off their own scripting language for it..

Greetz,
Gushe
Dec 20 '07 #5
acoder
16,027 Expert Mod 8TB
I Don't really understand what "API" is..
An Application Programming Interface - API.
Dec 20 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ruben Schoenefeld | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi - after I got sql*plus to work on my Linux box and I recompiled PHP 5 to include the oracle instant client, I run into a weird problem: I...
3
by: Carlos Ribeiro | last post by:
I was checking the Prolog recipe in the Cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303057 It's a clever implementation that explores some aspects of Python that I wasn't...
6
by: Gerry Viator | last post by:
Hi all, I have a textbox were a time is typed in like: upto 4 numbers 1900 300 1000 1425 I would like as they type the text to show todays date plus the time they
4
by: r0adh0g | last post by:
I am attempting to build a primitive search form on my site. It is searching an Access Database Table and comparing on field in the database to a field passed from the form. Works great if only...
1
by: Jacob Grydholt Jensen | last post by:
I am trying to learn iSQL*Plus for the 1Z0-007 exam. I am having a bit of problems with the substitution variables. My understanding was that they behave as in SQL*Plus, but my experiments beg to...
1
by: Miori | last post by:
Dear all, Server machine running Oracle Database Server on Linux and a Client machine running Oracle Client on WIndows XP. HOw it is possible to shut down/start up the Oracle database on the...
2
by: Ant | last post by:
Hi, I have an SQL assignment to do and at my school we use SQL *Plus there however I don't have Oracle at home, where I would like to do the work ,so I was wondering whats the easiest way to get...
0
by: Emil Georgiev | last post by:
Hell I have a Web Custom Control project in ASP.NET. I'm using a subclassing technique to add functionality in HyperLink web server control. I want to create a property "BrowserWindow" of my...
10
by: Mitoshima | last post by:
The group "Makers Of Video Games" will be releasing a game code named Tic Tac Toe Plus. Tic Tac Toe Plus is a game which will utilize the same simple rules and gameplay as the very popular Tic...
2
by: pbd22 | last post by:
Hi. Can somebody tell me how to prevent a postback when I click on the little "plus" sign next to the treenode's root folder? It postbacks and I have to restart a video stream coming to the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.