Animated screen in Batch
Posted: 30 May 2021 22:40
Hi everybody
IF I have a simple menu page in my batch, Is there any way to display an animated screen (I mean created by commands) even a simple one inside the batch file after waiting some time, and return to the menu page in this batch "if I press any key" again?
Here is the simple animated screen in my batch
you can try it, My question here how we can interrupt we it if press any key then go to a specific point or menu?
IF I have a simple menu page in my batch, Is there any way to display an animated screen (I mean created by commands) even a simple one inside the batch file after waiting some time, and return to the menu page in this batch "if I press any key" again?
Here is the simple animated screen in my batch
Code: Select all
@echo off
:A
echo .-`
echo `sss+- `:/:`
echo `. :sssss+` .sssss+.
echo oss/` /ssssss+` .sssssss/
echo sssso. -ssssssso. :sssssss+
echo +sssss. `sssssssss. +sssssss+
echo `+o+:. /ssssss. +sssssssss. `osssssss/
echo :sssss+. `sssssss. `osssssssso` `osssssss/
echo /sssssss: /sssssso. `osssssssso .ssssssss/
echo -ssssssss+` `osssssso` `ossssssss/ :ssssssss:
echo +sssssssso. .ssssssso` .sssssssss: /ssssssss-
echo `osssssssss. -sssssss+` .sssssssss- +ssssssss.
echo -ssssssssso` -sssssss+ .sssssssss` ossssssss.
echo /ssssssssso` :sssssss+ -ssssssss+-.+sssssssso`
echo +ssssssssso. /sssssss+ -sssssssssssssssssssso`
echo +ssssssssso. /sssssss: +ssssssssssssssssssss:
echo `ossssssssss. /sssssssssssssssssssssssssssssss`
echo `ossssssssss. ossssssssssssssssssssssssssssss/
echo `ossssssssss+ossssssssssssssssssssssssssssssss`
echo `osssssssssssssssssssssssssssso+sssssssssssss.
echo `osssssssssssssssssssssssssss` :ssssssssssss.
echo ``` `+ssssssssssssssssssssssssossssssssssssssss
echo .+ssssso/:.` /ssssssssssss+/ossso+:.` `ssssssssssssss/
echo .ssssssssssssssssssssssssss``:so. .:/ossssssssssssss.
echo :osssssssssssssssssssssssssssss/:+ssssssssssssssssss-
echo `:+sssssssssssssssssssssssssssssssssssssssssssss+`
echo `-+sssssssssssssssssssssssssssssssssssssssso-
echo -/sssssssssssssssssssssssssssssssssssso:
echo .:/ossssssssssssssssssssssssssso/-`
echo .:/ossssssssssssssssss+/-.`
echo `.-:////:::---.``
ping localhost -n 1 -w 250 >nul
cls
echo :.
echo `-` +ss+.
echo oso- /sssss- .-:`
echo ` -ssss- `sssssso` /ssss/`
echo .os+:` /sssso` `sssssss/ ossssso.
echo osssso- +sssss/ .ssssssss- /sssssso`
echo .sssssss- +ssssss` .sssssssso -sssssss:
echo .ssssssss. /ssssss: +ssssssss: osssssso`
echo `sssssssso` -sssssss` -sssssssso :sssssss:
echo ossssssss/ `sssssss: ossssssss. `ssssssso`
echo :sssssssss` /sssssso -ssssssss/ +sssssss:
echo `sssssssss/ .sssssss- ossssssso -ssssssso
echo +sssssssss` +sssssso :ssssssss- osssssss.
echo .sssssssss+ .sssssss- `osssssss+ /sssssss+
echo +sssssssss. +sssssso :ssssssso.`:ssssssss.
echo -sssssssss+ -sssssss` `sssssssssosssssssss/
echo +sssssssss: +sssssso/+ssssssssssssssssssss`
echo -ssssssssso-:osssssssssssssssssssssssssssss-
echo osssssssssssssssssssssssssssssssssssssssss:
echo `-:::-` -sssssssssssssssssssssssssssssssssssssssss/
echo :sssssss+:.` .ssssssssssssssssssssssssssoossssssssssss+
echo :osssssssss+/+sssssssssssssssssssssssss:`.ssssssssssss+
echo ./ossssssssssssssssssssss//ssssssooo+oo+ossssssssssss-
echo .:ossssssssssssssssssso..os/-..` `/ssssssssssssso
echo `/sssssssssssssssssssssso` .osssssssssssss.
echo :osssssssssssssssssssss+:-.`.:+ssssssssssssss-
echo -+osssssssssssssssssssssssssssssssssssssso.
echo `:ossssssssssssssssssssssssssssssssss+-
echo ./osssssssssssssssssssssssssssso/.
echo .:+ossssssssssssssssssso+/:-
echo `...--:://///:--..`
ping localhost -n 1 -w 250 >nul
cls
echo `-` `.
echo .:. .oso` :os/
echo /sss+` `osss+ `+ssss+
echo +ssssso` +sssso +ssssss. `
echo -sssssss: .ssssss` .sssssss: .+oso.
echo /ssssssso /ssssss` `+sssssss/ osssss-
echo +ssssssss` ossssss. `sssssssso .sssssso
echo ossssssss- `sssssss. `sssssssss -sssssss.
echo `sssssssss: .sssssss. `sssssssss -sssssss-
echo `sssssssss: .sssssss. `sssssssso -sssssss-
echo .sssssssss: .sssssss. `ssssssss+ :sssssss-
echo .sssssssss/ .sssssss. `ssssssss+ /sssssss:
echo `sssssssss+ .sssssss. `ssssssss/ /sssssss:
echo `ssssssssso .sssssss- `ssssssss/ +sssssss:
echo `ssssssssss .sssssss- `ssssssss: osssssss-
echo `ssssssssss `sssssss. `ssssssss- osssssss-
echo ./+++/:. `ssssssssss/:+sssssss+/+sssssssso++ssssssss-
echo osssssso/. +sssssssssssssssssssssssssssssssssssssssss-
echo -ossssssss/.`-sssssssssssssssssssssssssssssssssssssssss-
echo .+sssssssssoosssssssssssssssssssssssssssssssssssssssss-
echo `/sssssssssssssssssssssssssssssssssssssssssssssssssso`
echo :ssssssssssssssssssso+ossssssssssso+osssssssssssss+
echo `/ssssssssssssssssss-`-ssssoooosss/`.ossssssssssss-
echo -osssssssssssssssssoo+-.......-+soosssssssssssso
echo `:ssssssssssssssssss/ /++. .sssssssssssssss-
echo .+sssssssssssssssss. /oo- /ssssssssssssss-
echo -ossssssssssssssss:`` ``-+ssssssssssssso.
echo `:ossssssssssssssssooosssssssssssssss/`
echo .:+ossssssssssssssssssssssssssso/.
echo `-:/osssssssssssssssssss+:.
echo ``.-:://///////:-.`
ping localhost -n 1 -w 250 >nul
cls
echo .:/`
echo .ossss. .+o.
echo :sssssso `/sss/ `:.
echo -ssssssso .ossss/ -+sso
echo .ssssssss+ .ssssss- .osssss-
echo +ssssssss/ .sssssso .sssssss-
echo :sssssssss. `ossssss: :ssssssss` ``
echo `ssssssssso /sssssso .ssssssss+ -osss-
echo /sssssssss- .sssssss: +ssssssss: -ssssso
echo `ssssssssso +sssssso -sssssssss` .sssssss.
echo /sssssssss: .sssssss- ossssssss: +sssssss`
echo `ssssssssss` osssssso -sssssssso .sssssss+
echo `---` /sssssssss+ -sssssss- ossssssss- osssssss.
echo :ssssso: `ssssssssss- osssssso -ssssssss+ :sssssss+
echo -ssssssso` /sssssssss+ -sssssss- ossssssss` `ssssssss.
echo /ssssssso. +ssssssssso-:ossssss/ -ssssssss: /sssssss+
echo `ossssssss:-+sssssssssssssssssss+..osssssss+ .ssssssss.
echo -sssssssssssssssssssssssssssssssssssssssss: osssssss/
echo `ssssssssssssssssssssssssssssssssssssssssssosssssssss`
echo :ssssssssssssssssssssssssssssssssssssssssssssssssss/
echo /sssssssssssssssssoossssssssssssssssssssssssssssss`
echo /sssssssssssssss: `sssssssssssssssssssssssssssss/
echo +sssssssssssssssoss++osssssss+:+sssssssssssssso`
echo `+ssssssssssssssso` `.-/os:`-ssssssssssssso`
echo /ssssssssssssss/ ohyo: `sssssssssssssssss.
echo -ossssssssssss. `NNNh. `+ssssssssssssssss.
echo -+ssssssssss- sy: -ossssssssssssssso.
echo `:+ssssssss:` `-+ssssssssssssssss:`
echo `:+ssssssssssssssssssssssssss/`
echo `-/+ossssssssssssssssss+-
echo `.-:/+ossssso+/:.
ping localhost -n 1 -w 250 >nul
cls
echo ./oso.
echo .+ssssso `.`
echo -ssssssso `/ss+
echo :ssssssss/ `/ssss+
echo :sssssssss. :ssssss- ./os/
echo /sssssssss/ `+ssssss/ :osssso
echo :ssssssssso` `ossssss+ .osssssso
echo :ssssssssss- `osssssso` `/ssssssss-
echo -ssssssssss- `osssssss. +ssssssss/ ``
echo `osssssssss/ `osssssss- +sssssssss` .osss/
echo `:::-` `osssssssss+ +sssssss: /sssssssss- -ssssss`
echo `osssss+` +ssssssssss` /sssssss/ :sssssssss: :sssssss.
echo +sssssso` /ssssssssss- :sssssss+ -sssssssss/ -ssssssso
echo :ssssssso -ssssssssss/ -ssssssso .sssssssss/ -ssssssss.
echo `ssssssss/ /ssssssssso .ssssssso` `ossssssss/ -ssssssss-
echo +sssssssso+sssssssssssoossssssso. `ossssssss/ -ssssssss:
echo ossssssssssssssssssssssssssssss- +ssssssss+ .ssssssss+
echo /sssssssssssssssssssssssssssssssoossssssss/ .sssssssso`
echo .sssssssssssssssssssssssssssssssssssssssso .sssssssso`
echo :ssssssssssssssssssssssssssssssssssssssss+/sssssssso`
echo `sssssssssssssss+..osssssssssssssssssssssssssssssss.
echo :sssssssssssssso::ossssssssssssssssssssssssssssss-
echo +sssssssssssssssso-`.:ossssssssssssssssssssssss:
echo `+sssssssssssssso` `-+so``/sssssssssssssss:
echo /sssssssssssss: `ss+/ossssssssssssss:
echo `/sssssssssss- ` `ossssssssssssssssso.
echo `/sssssssss/ `:osssssssssssssssss+`
echo `:ossssssso///osssssssssssssssssss:
echo -+sssssssssssssssssssssssssss/`
echo .:+ssssssssssssssssssss+:`
echo `.:/ossssyysyyss+/-`
echo .-----..`
ping localhost -n 1 -w 250 >nul
cls
echo `-:`
echo `/osso. `:/`
echo .ossssso -oss+ .`
echo .osssssso /sssso `:oso`
echo `ossssssso `+sssss/ :ossss:
echo /ssssssss+ +ssssss` `+ssssss/
echo .sssssssss: /ssssss+ .+sssssss-
echo osssssssss` -sssssss. `ossssssso` `:+++.
echo -sssssssss/ `ossssss+ :ssssssss+ `osssso`
echo osssssssss. :sssssss. `ossssssss- /ssssss-
echo -sssssssss+ `ossssss+ /sssssssso -sssssss-
echo osssssssss- :sssssss. `sssssssss- osssssss`
echo `` -ssssssssso `ossssss/ /ssssssss+ :sssssss/
echo ./+oo+:` osssssssss: /sssssss. `sssssssss` `osssssss.
echo /sssssso: -ssssssssss. `sssssss+ :ssssssss: /sssssss/
echo `osssssss/ +sssssssss+``:sssssso. `ossssssso` .ssssssss.
echo -ssssssss+``/ssssssssssoosssssss/ /ssssssss- +sssssss+
echo /ssssssssoosssssssssssssssssssss++ssssssss/ -ssssssss.
echo `ssssssssssssssssssssssssssssssssssssssssso-:osssssss/
echo osssssssssssssssssssssssssssssssssssssssssssssssssso`
echo .osssssssssssssssssssssssssssssssssssssssssssssssss:
echo .osssssssssssssss+-:ssssssssssssssssssssssssssssso`
echo -sssssssssssssss+--osssssssssssossssssssssssssss:
echo :sssssssssssssssss/---:/+ooss/.-ssssssssssssss+
echo -ssssssssssssssso `o+:...:oo:/ssssssssssssso`
echo -osssssssssssss+` `:+ss+ :ssssssssssssssso`
echo `/osssssssssssso/-.`````-osssssssssssssso`
echo `-+ssssssssssssssssoossssssssssssssss+`
echo `:+sssssssssssssssssssssssssssss+-
echo `:+osssssssssssssssssssssss+-
echo `.-/+osssssssssssssss+:`
echo `.-://++++/:-.`
ping localhost -n 1 -w 250 >nul
cls
echo :s+` .+o-
echo `/so/` :ssso :ssss:
echo .osssss. -sssss. /ssssss.
echo osssssso `osssss: .sssssss: `-::.
echo -ssssssss- :ssssss/ +sssssss+ .sssss:
echo /ssssssss+ ossssss/ :sssssssss /ssssss:
echo +sssssssso `sssssss/ /sssssssss` osssssso
echo osssssssss. .sssssss/ /sssssssss. ssssssss.
echo ssssssssss. -sssssss/ /sssssssss. osssssss-
echo `ssssssssss. -sssssss/ /sssssssss` ssssssss-
echo `ssssssssss- .sssssss/ /sssssssss `ssssssss-
echo `ssssssssss: .sssssss/ /sssssssss .ssssssss-
echo ssssssssss: .sssssss+ :sssssssso .ssssssss-
echo ssssssssss/ .sssssss+ :sssssssso -ssssssss-
echo ssssssssss+ .sssssss+ :ssssssss+ :ssssssss-
echo ssssssssss+ `sssssss/ :ssssssss: :ssssssss-
echo -/++/:. ossssssssso--+ssssssso/:osssssssss//ossssssss-
echo +ssssssso- ossssssssssssssssssssssssssssssssssssssssssss-
echo -ssssssssso- `ssssssssssssssssssssssssssssssssssssssssssss-
echo .ossssssssso/+ssssssssssssssssssssssssssssssssssssssssssss-
echo :sssssssssssssssssssssssssssssssssssssssssssssssssssssss`
echo -sssssssssssssssssssssssssssssssssssssssssssssssssssss+
echo /ssssssssssssssssssss:.:ssssssssssss:`-ssssssssssssss-
echo :sssssssssssssssssss/-/so++/////+ss+-/ssssssssssssss
echo `/ssssssssssssssssssss- /ssssssssssssssss:
echo .osssssssssssssssssso` `+sssssssssssssss/
echo :sssssssssssssssssss/:-...:+ssssssssssssssss/
echo `/ssssssssssssssssssssssssssssssssssssssss-
echo `:osssssssssssssssssssssssssssssssssss/`
echo .:/osssssssssssssssssssssssssssso/`
echo `-:+osssssssssssssssssso/-`
echo `.--::::::::::-.`
ping localhost -n 1 -w 250 >nul
cls
goto A