home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

question about running scripts...

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2147
Discussions: 200,972, Posts: 2,379,760, Members: 246,336
Old March 9th, 2005, 01:25 AM   Digg it!   #1 (permalink)
Member
 
Join Date: Feb 2005
Posts: 44
Arrow
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...?
atlboi is offline   Reply With Quote
Old March 9th, 2005, 07:21 AM     #2 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
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!
sr71000 is offline   Reply With Quote
Old March 9th, 2005, 04:00 PM     #3 (permalink)
Senior Member
 
James T's Avatar
 
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.
James T is offline   Reply With Quote
Old 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.
atlboi is offline   Reply With Quote
Old March 10th, 2005, 01:59 AM     #5 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
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.
sr71000 is offline   Reply With Quote
Old 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.
atlboi is offline   Reply With Quote
Old March 10th, 2005, 02:19 AM     #7 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
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 .
sr71000 is offline   Reply With Quote
Old 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
atlboi is offline   Reply With Quote
Old March 10th, 2005, 02:50 AM     #9 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
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?
sr71000 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changes in groups to take effect immediately muno Applications and Operating Systems 15 November 30th, 2004 03:43 PM
Perl/Linux Question crouse Webmastering and Programming 7 December 1st, 2002 06:11 PM
W2K logon script problem DVNT1 Technical Support 3 September 13th, 2002 05:39 PM
Disable VBScript and JScript exe sande Applications and Operating Systems 4 August 24th, 2002 04:09 PM
Hosting my own web server pete_g Networking and Internet 3 December 9th, 2001 04:30 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3050)
The disrespect of Obama by Russian .. (48)
Delete an OS (16)
Breaking: San Diego ACORN Document .. (10)
Nvidia GTX 260 problem (8)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
windows vista security holes (17)
Regular Build (11)
Internet Lost (5)
windows 7 problem (7)
Point and Shoot Camera Suggestions. (6)
Print spooler problem (16)
Recent Discussions
Delete an OS (16)
Multiple Restarts Required at Boot (4)
cell phone won't work (0)
Nvidia GTX 260 problem (8)
Is the PSU I received dead? (15)
Can't open Word (12)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (37)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)
windows vista security holes (17)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)


All times are GMT -4. The time now is 10:03 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28