What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » what is wrong with this script?

what is wrong with this script?
Author: Message:
Wakaki
Junior Member
**

Avatar

Posts: 30
31 / Male / –
Joined: Jan 2007
O.P. RE: what is wrong with this script?
code:
function OnPoliteEvent_CtrlClicked(PlusWnd, CtrlId) {
if(CtrlId == "Btnlol") {
OverwriteFile("defwelcomemsg.txt", PlusWnd.GetControlText("EdtWelcomeMSg"));
OverwriteFile("defgoodbyemsg.txt", PlusWnd.GetControlText("EdtGoodbyeMsg"));

}



this function doesn;t work:S

this is my window xml file:

code:
<?xml version="1.0" encoding="UTF-16" ?>
- <Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">
- <GlobalColors>
- <GlobalColor Id="green">
  <Red>80</Red>
  <Green>200</Green>
  <Blue>65</Blue>
  <Alpha>220</Alpha>
  </GlobalColor>
- <GlobalColor Id="bg">
- <BaseColor>
  <Saturation>2</Saturation>
  <Brightness>0.6</Brightness>
  <Transparency>82</Transparency>
  </BaseColor>
  </GlobalColor>
  </GlobalColors>
- <Window Id="Polite" Version="1">
- <Attributes>
  <Caption>Windows Live Messenger</Caption>
  </Attributes>
- <TitleBar>
- <Title>
  <Text>Preferences</Text>
  </Title>
  </TitleBar>
  <Position Width="475" Height="155" />
  <DialogTmpl />
- <Controls>
- <Control xsi:type="StaticControl" Id="LblTop">
  <Position Top="9" Width="404" Left="80" Height="20" />
  <Transparency>180</Transparency>
  <Caption>Fill the fields below in if you want to change youre Welcome or Goodbye message:</Caption>
  </Control>
- <Control xsi:type="StaticControl" Id="LblWelcomeMsg">
  <Position Top="35" Width="112" Left="9" />
  <Caption>Current Welcome message:</Caption>
  </Control>
- <Control xsi:type="EditControl" Id="EdtWelcomeMsg">
  <Position Top="35" Width="300" Left="100" />
  </Control>
- <Control xsi:type="StaticControl" Id="LblGoodbyeMsg">
  <Position Top="70" Width="112" Left="9" />
  <Caption>Current Goodbye message:</Caption>
  </Control>
- <Control xsi:type="EditControl" Id="EdtGoodbyeMsg">
  <Position Top="70" Width="300" Left="100" />
  </Control>
- <Control xsi:type="ButtonControl" Id="BtnCancel">
  <Position Left="400" Top="100" Width="50" />
  <Caption>Close</Caption>
  </Control>
- <Control xsi:type="ButtonControl" Id="Btnlol">
  <Position Left="330" Top="100" Width="50" />
  <Caption>Save</Caption>
  </Control>
  </Controls>
  </Window>
  </Interfaces>

[Image: wakakipt2.png]
01-27-2007 05:38 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
what is wrong with this script? - by Wakaki on 01-27-2007 at 04:53 PM
RE: what is wrong with this script? - by deAd on 01-27-2007 at 04:55 PM
RE: what is wrong with this script? - by foaly on 01-27-2007 at 04:55 PM
RE: what is wrong with this script? - by Wakaki on 01-27-2007 at 05:24 PM
RE: what is wrong with this script? - by Eljay on 01-27-2007 at 05:35 PM
RE: what is wrong with this script? - by Wakaki on 01-27-2007 at 05:38 PM


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