[ Dalay ] The best for make a delay for Merlin type script - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [ Dalay ] The best for make a delay for Merlin type script (/showthread.php?tid=72454)
[ Dalay ] The best for make a delay for Merlin type script by xsylvain2 on 03-08-2007 at 05:11 PM
function OnEvent_ChatWndCreated(ChatWnd){
Merlin_RunningON();
Merlin.Play("Greet");
Merlin.Speak("Votre seigneurie!");
Merlin.Speak("\\Spd=180\\Permettez moi d'interpréter votre discution!");
Merlin.Speak("\\Spd=180\\Je suis votre fidèle serviteur!");
Req = Merlin.Speak("\\Spd=180\\Vous venez d'ouvrir votre fenêtre de clavardage à "+TimeD()+"!");
// here
Do { //don't work
Wscript.Sleep 100;
}
while Req.Status > 0;
MsgPlus.DisplayToast("Clavardage","Bonne séance!");
}
RE: I want to create a loop for message toast later by RaceProUK on 03-08-2007 at 06:06 PM
In what way, 'doesn't work'?
RE: I want to create a loop for message toast later by vikke on 03-08-2007 at 06:16 PM
It should be:
code: // do should be lower case
do { //don't work
Wscript.Sleep 100;
}
while ( Req.Status > 0 ); // you need braces around the while statement
MsgPlus.DisplayToast("Clavardage","Bonne séance!");
Check the comments.
[ - Here - ] by xsylvain2 on 03-11-2007 at 05:55 PM
That is a good method !
code: function OnEvent_ChatWndCreated(ChatWnd){
Merlin_RunningON();
Merlin.Play("Greet");
Merlin.Speak("Votre seigneurie!|Votre majesté!|Maitre!");
Merlin.Speak("\\Spd=180\\Permettez moi d'interpréter votre discution!");
Merlin.Speak("\\Spd=180\\Je suis votre fidèle serviteur!|Je veis faire le perroquet!");
Merlin.Speak("\\Spd=180\\Vous venez d'ouvrir votre fenêtre de clavardage à "+TimeD()+"!");
Merlin.Play("Congratulate_2");
Merlin.Speak("\\emp\\Bonne \\emp\\séance!");
Merlin.Play("domagic1");
MsgPlus.AddTimer("ToastA", 20000);
}
function OnEvent_Timer(TimerId){
if(TimerId == "ToastA") {
MsgPlus.DisplayToast("Clavardage","Bonne séance!","\\C:\\WINDOWS\\Media\\ding.wav");
}
if(TimerId == "ToastB") {
MsgPlus.DisplayToast("Clavardage","Au revoir!","\\C:\\WINDOWS\\Media\\ding.wav");
}
}
function OnEvent_ChatWndDestroyed(ChatWnd){
if(Messenger.CurrentChats.count <= 1){
if(Merlin.Visible == false) {
Merlin.show();
}
Merlin.Speak("\\Spd=200\\Seigneur, vous venez de fermer votre fenêtre de clavardage à "+TimeD()+"!");
Merlin.Speak("À plus tard!");
Merlin.Play("wave");
Merlin.Speak("\\spd=200\\Je vais faire le plein de la \\Emp\\MANA!");
MsgPlus.AddTimer("ToastB", 10000);
Merlin_RunningOFF();
}
}
Interop.Call('user32', 'Sleep 100' it Jam the prosses for next indtance.
|