How do I make a delay between three periods on one line in batch for a text adventure?

235 Views Asked by At

I'd like to make three periods show one after the other in, for instance, 3 second intervals.

As in: .(3 seconds).(3 seconds).

Basically I'd like to make an ellipsis that shows more slowly (rather than immediately) for some dialogue.

2

There are 2 best solutions below

0
On BEST ANSWER

Try this (338 results for https://stackoverflow.com/search?q=batch+echo+one+line search):

@ECHO OFF >NUL
<nul (set /p x=.)
timeout /t 3 /nobreak > NUL
<nul (set /p x=.)
timeout /t 3 /nobreak > NUL
echo(.
2
On

Easiest way to get a batch script to sleep is using the command timeout.

@echo off
echo Hello
timeout /t 3 /nobreak > NUL
echo World

This will print 'Hello' then wait for 3 seconds and then print 'World'