question about running scripts...  | |
March 9th, 2005, 01:25 AM
|
#1 (permalink)
| | Member
Join Date: Feb 2005
Posts: 44
| question about running scripts...
i dont know if this is the right section but... iight i have a class and we were talking about scripts and did excercise in which we type in a txt, a message box that came up and when i responded one way it ask another question or did something else. but it didnt really go in depth. i was just wondering with a script can you have a box come up and ask questions and if someone respond a certain way have it run a program like paint for example or something else. Because my girl birthday is coming up and i wanted to see if i can run a script at start up and for example if she respond have it run something to suprise her. could someone help me out...? |
| |
March 9th, 2005, 07:21 AM
|
#2 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
yea...it's pretty easy to do. are you looking for something in perl? if you want some help I could help you write a little something to get it to work!  |
| |
March 9th, 2005, 04:00 PM
|
#3 (permalink)
| | Senior Member
Join Date: Jul 2004 Location: New Zealand
Posts: 582
|
Windows scripting host (wsh files) offers a few of these facilities. Personal choice is perl however, you'd need to install aspn perl or the like. I'm assuming a windows box. |
| |
March 10th, 2005, 12:27 AM
|
#4 (permalink)
| | Member
Join Date: Feb 2005
Posts: 44
|
well im not real familiar with scripting so i dont really know what perl is but i can look it up. i would appreciate it if you could do something for me or give me more info on it.
Also her birthday is mar. 11th so i was tryin to get something done by then
Last edited by atlboi : March 10th, 2005 at 12:30 AM.
|
| |
March 10th, 2005, 01:59 AM
|
#5 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
perl is a programming language. let me know whatcha wanna do and I'll see if i can get it done for you. (remember..the simpler the quicker and easier). I've got a lot going on right now...but i'd like something really simple..if you know what i mean. lol just let me know what you want and i'll see if i can do it for you. |
| |
March 10th, 2005, 02:13 AM
|
#6 (permalink)
| | Member
Join Date: Feb 2005
Posts: 44
|
iight well i just want something simple like have a box come up and ask her a couple of simple and easy questions and somewhat funny responds and finally ask her how old is she and when she answer a bmp opens up paint with a pic that have happy birthday and other stuff. thats basically what i want to do. umm...if u need details i need to think of some questions to ask her and stuff. if u have suggestions im up for it. im not good at thinking of stuff like that. |
| |
March 10th, 2005, 02:19 AM
|
#7 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
lol, it's your call.  just tell me what you want it to say and what you want to happen. also...if u use aim...pm me with your aim sn and i'll im you..we can work it out quicker. (honestly..i'm not really sure if i'm going to have time to do much here...so please..only like 2 questions, and then ask her age cus i've got college and scholarship apps, a term paper, and 2 computer jobs i gotta do tomorrow. i'm swamped...lol. it's 1:18 am right now and i just finished studying for a test. lol (everything at once). seriously though..the easier you keep it...the better chance you have of me getting it working in time for you  . |
| |
March 10th, 2005, 02:22 AM
|
#8 (permalink)
| | Member
Join Date: Feb 2005
Posts: 44
|
ok i understand, well i have aim and my sn is dsgb atlboy just send me a msg |
| |
March 10th, 2005, 02:50 AM
|
#9 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
| Code: #!/usr/bin/perl
# Created on Mar 10, 2005 1:32:12 AM
print "\nHello Ashley. This is Ashley right? ";
chomp ($name=<stdin>);
if (name=="yes") {
print "\nGood! So how old are you Ashley? ";
chomp ($age=<stdin>);
print "\n\nCongradulations on your $age\'th birthday!";
}
else { print "Can you get Ashley and rerun this program? Thanks!"}
$dummy=<stdin>; that's what I wrote...took a few minutes, but nothing major. what do you guys think? |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |