code:function OnPoliteEvent_CtrlClicked(PlusWnd, CtrlId) { if(CtrlId == "Btnlol") { OverwriteFile("defwelcomemsg.txt", PlusWnd.GetControlText("EdtWelcomeMSg")); OverwriteFile("defgoodbyemsg.txt", PlusWnd.GetControlText("EdtGoodbyeMsg")); }
code:<?xml version="1.0" encoding="UTF-16" ?> - <Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsichemaLocation="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>