RE: [Request] a script that will change your PSM from a text file for each new line
this should work:
code: /* Create file 'psm.txt'..
add some lines of text.. */
var psm, count=0;
function OnEvent_Timer(TimerId){
if(Messenger.MyStatus > 0 && Messenger.MyEmail === "abc@zcx.com"){
if(count == psm.length) count=0;
Messenger.MyPersonalMessage = psm[count];
count++;
MsgPlus.AddTimer("changepsm", 10000);
}
}
function OnEvent_Initialize(MessengerStart){
var fso = new ActiveXObject("Scripting.FileSystemObject");
var file = fso.OpenTextFile(MsgPlus.ScriptFilesPath + "\\psm.txt", 1);
psm = file.ReadAll().split("\n");
OnEvent_Timer("changepsm");
}
function OnEvent_Uninitialize(){
file.Close();
}
This post was edited on 09-19-2008 at 12:20 PM by roflmao456.
[quote]
Ultimatess6: What a noob mod
|