O.P. HELP : Need a solution to load messages to jscript.
Hello everyone
I am new for jscript, I am developing a program (script) to send a auto message to my friends, whom stay online for too long. I mean, I will notice them for take a little break from computer online.
Now my script almost complete just left in a part of load data (nice and worm messages) for send it out.
I try to search for this solution for a week but still no exactly I want.
In my idea, I think to prepare messages in local XML file (same directory of the script), then open and load it to script array, then random select them to send out. I looking the way to do this work.
I hope will has someone show me an answer in a sample XML file that contain messages. Also a script to load and random select their message in array to display.
Thank you so much for your help.
Sakpong (Thailand)
ps. I also attached my (modified) script. In case you need to understand more in my idea. Dear everyone
I'm looking in Tips's topic(http://shoutbox.menthix.net/showthread.php?tid=56747). I feel I am found a solution (Reading the contents of a file) in there. It's seem not to hard. Next I must separate it to array.
I will try to implement it and will tell the result soon.
Sorry to annoy you. The solution is seem to very closely but I am looking in wrong places.
But if someone have any good suggestions, please. I always open for your opinion.
Thank you so much.
Attachment: Care 4 Friends.plsc (6.57 KB)
This file has been downloaded 102 time(s).
This post was edited on 04-30-2009 at 09:52 AM by Saki.
|