Computing.Net > Forums > Disk Operating System > Typewriter effect for batch files

Typewriter effect for batch files

Reply to Message Icon

Original Message
Name: sarpedon
Date: February 14, 2005 at 21:50:47 Pacific
Subject: Typewriter effect for batch files
OS: Msdos
CPU/Ram: PIII 667 Mhz & 256 rdram
Comment:

Hi,
I have a batch file for msdos. I'd like write a text like "welcome to my computer" but like a typewriter, where every character is typed at an interval.
How can i do it?
Thanks in advance...
Sarpedon


Report Offensive Message For Removal


Response Number 1
Name: wizard-fred
Date: February 16, 2005 at 09:07:02 Pacific
Subject: Typewriter effect for batch files
Reply: (edit)

You will need a program that will display the text one character at a time with a delay between each.


Report Offensive Follow Up For Removal

Response Number 2
Name: sarpedon
Date: February 17, 2005 at 11:39:54 Pacific
Subject: Typewriter effect for batch files
Reply: (edit)

Which program?


Report Offensive Follow Up For Removal

Response Number 3
Name: wizard-fred
Date: February 17, 2005 at 12:14:55 Pacific
Subject: Typewriter effect for batch files
Reply: (edit)

I would use BASIC.


Report Offensive Follow Up For Removal

Response Number 4
Name: sarpedon
Date: February 17, 2005 at 14:25:38 Pacific
Subject: Typewriter effect for batch files
Reply: (edit)

Unfortunately, i don't know BASIC Programming language..


Report Offensive Follow Up For Removal

Response Number 5
Name: wizard-fred
Date: February 18, 2005 at 03:54:40 Pacific
Subject: Typewriter effect for batch files
Reply: (edit)

I am working on a basic program that I will email to you when finished.


Report Offensive Follow Up For Removal


Response Number 6
Name: Larry21
Date: February 18, 2005 at 04:12:15 Pacific
Subject: Typewriter effect for batch files
Reply: (edit)

Its not too hard, its pretty 'basic' actually.

This should bring the text on onto the screen one letter at a time:

CLS
welcome$ = "Welcome to my computer!"
N = LEN(welcome$)
FOR x = 1 TO N
PRINT MID$(welcome$, x, 1);
t = TIMER
DO: LOOP WHILE TIMER - t < .2
NEXT x
END


All you have to do is download BASIC (pretty much any version, I think, though best bet would probably be a later version of QuickBasic so that you can easily turn it into an exec) and insert that code. Then, if you want it to be executable as a stand alone thing like a batch file, you just have to convert the .BAS to an .EXE (of course dont just rename it but rather you have to truly convert it.)

Good luck,
Larry

PS- It would probably make more sense for this question to be asked in a 'Prgramming' forum. You'd probably get more experienced answers.


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Typewriter effect for batch files

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge