Shoutbox

[REQUEST]Random quotes, automatic - 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: [REQUEST]Random quotes, automatic (/showthread.php?tid=80778)

[REQUEST]Random quotes, automatic by Jonte135 on 01-07-2008 at 07:36 PM

What I want is a code that takes quotes from a file, or from a menu if you bother to make one (though it would use a file, I think). And then you can select the number of seconds between every message... For example I have 2 quotes:

"I'm better than you."
and:
"You are better than me."

If I select 120 seconds in the variable it will take 2 minutes between the quotes, when it's at the end of the file it would loop over and over etc.

If this already exists I'm so sorry :$ I can't find it where it does it by time... :(


RE: [REQUEST]Random quotes, automatic by roflmao456 on 01-08-2008 at 10:13 PM

this should work :)

includes an option to edit quotes.txt in the script menu.

Commands:
/trqstart - starts reading from quotes.txt
/trqstop - stops reading from quotes.txt


Note that you could only do this to one contact at a time

P.S: edit the script to change the number of seconds until the next quote gets sent. ;)


RE: [REQUEST]Random quotes, automatic by Jonte135 on 01-09-2008 at 05:49 PM

Ohh I'm sorry that I wasn't clear enough, the quotes should be in the Personal Message area :(


RE: [REQUEST]Random quotes, automatic by roflmao456 on 01-09-2008 at 08:34 PM

this should work :) tested.

kept the older version so other people can download :P

(WLM: the timer is set to 1 second, so it may reset the psm sometimes, edit the script to set your preferred amount of time until the next quote comes in)


RE: [REQUEST]Random quotes, automatic by Jonte135 on 01-10-2008 at 04:55 PM

Thanks! You're the best!

You may close/do what ever you do with finished topics :P


RE: [REQUEST]Random quotes, automatic by Jonte135 on 01-20-2008 at 05:10 PM

Hmm is it possible to make so it automatically starts quoting when I start MSN ("Start and "Stop" quoting should still be there though)? And when it reaches the end of the text file it just loops over again.


RE: [REQUEST]Random quotes, automatic by Jonte135 on 01-24-2008 at 06:24 PM

*Bump*


RE: [REQUEST]Random quotes, automatic by Whitewolf on 01-27-2008 at 10:07 AM

It sure is, to start it automatically all you'd have to do is add the following code to your script, right after the OnGetScriptMenu() function:

code:
function OnEvent_Signin(Email) {
       qfile = fso.OpenTextFile(MsgPlus.ScriptFilesPath + "\\quotes.txt", 1);
       MsgPlus.AddTimer("sendmsg", timer * 1000);
       Messenger.MyPersonalMessage = qfile.ReadLine();
}


That is the same code used when you push the "Start" menu button, except it executes when you sign in to msn.

Edit: As for the loop, I am unsure how that would be done (sorry, new to this). Also, tested it and it works.
RE: [REQUEST]Random quotes, automatic by Jonte135 on 01-27-2008 at 10:37 AM

Ahh awesome thanks :)