中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-30 21:31
47,813 topics / 349,918 posts / today 0 new / 48,279 members
DOS批处理 & 脚本技术(批处理室) » Challenge the digital rain again (updated)
Printable Version  4,051 / 34
Floor16 knoppix7 Posted 2008-05-25 21:18
银牌会员 Posts 634 Credits 1,287 From cmd.exe
It's better to use tabs for it. Calculating spaces is too tiring..
Floor17 terse Posted 2008-05-25 21:57
银牌会员 Posts 946 Credits 2,404
Each line is fixed to output 80 characters, then it should be aligned, right?
Floor18 WANKOILZ Posted 2008-05-25 23:14
初级用户 Posts 89 Credits 198 From 重庆
I also come up with a simple one:


[ Last edited by WANKOILZ on 2008-5-27 at 03:35 PM ]
Floor19 konkoo Posted 2008-11-16 06:37
初级用户 Posts 27 Credits 50 From 南京
WANKOILZ
Efficient and concise, great!
Floor20 weasel Posted 2008-11-16 16:53
初级用户 Posts 66 Credits 118
In learning, the thread starter is amazing
Floor21 nanhezzb Posted 2009-02-09 10:44
初级用户 Posts 32 Credits 37
How to achieve scrolling down?
Floor22 netbenton Posted 2009-02-09 15:16
银牌会员 Posts 752 Credits 1,916 From 广西
@echo off&color 02
set n=1
:loop
set var=
for /l %%i in (1,1,26) do (call set/a r=%%random%%%%%%2&call set "var=%%var%% %%r%%")
set "len%n%=%var%"
set/a n=(n-1+24)%%24,m=n
for /l %%b in (1,1,24) do (call :sub)
cls
echo.%var%
for /l %%i in (1,1,300) do ver>nul
goto loop
:sub
set/a m=(m+1)%%24
call set var=%%var%% %%len%m%%%

[ Last edited by netbenton on 2009-2-9 at 18:43 ]
Floor23 netbenton Posted 2009-02-09 21:30
银牌会员 Posts 752 Credits 1,916 From 广西
Part of the code borrows the method from floor 18 and is modified to make it fall down.
The real "rain" is coming! ^_^

@echo off&color 02
set len= 数 码 雨 来 咯 !
:loop
set var=
for /l %%i in (1,1,26) do (call set/a r=%%random%%%%%%2&call set "var=%%var%% %%r%%")
set len=%var% %len:~0,1838%
cls
echo.%len%
for /l %%i in (1,1,300) do ver>nul
goto loop
Floor24 netbenton Posted 2009-02-09 21:38
银牌会员 Posts 752 Credits 1,916 From 广西
@echo off&color 02
set len= 数 码 雨 来 咯 ! 16H By Benton
set str=fedcba9876543210
:loop
set var=
for /l %%i in (1,1,26) do (call set/a r=%%random%%%%%%16&call call set "var=%%var%% %%%%str:~%%r%%,1%%%%")
set len=%var% %len:~0,1838%
cls
echo.%len%
for /l %%i in (1,1,300) do ver>nul
goto loop
Floor25 kennyfan Posted 2009-02-16 00:25
中级用户 Posts 112 Credits 259
Haha, it's really quite fun!
Floor26 learner0 Posted 2009-02-16 14:32
初级用户 Posts 49 Credits 108
Floor27 netbenton Posted 2009-04-17 02:12
银牌会员 Posts 752 Credits 1,916 From 广西
@echo off&color 02
if defined len goto :sub
SETLOCAL ENABLEDELAYEDEXPANSION
set len= 数 码 雨 来 咯 ! By Benton
start /b %~n0.bat
title 数码雨 By Benton 按任意键退出
set str= 0 1 2 3 4 5 6 7 89ABCDEFG
:loop
set var=
for /l %%i in (1,1,26) do (set/a r=!random!%%32&call set "var=!var! %%str:~!r!,1%%")
set len=!var! !len:~0,1838!
cls
echo !len!
for /l %%i in (1,1,300) do ver>nul
goto loop
:sub
pause>nul
TASKKILL /FI "WINDOWTITLE ne 数码雨 By Benton" >nul
Floor28 netbenton Posted 2009-04-17 11:47
银牌会员 Posts 752 Credits 1,916 From 广西
::Hacker digital rain bidirectional movement, super realistic
::Also supports key exit

Floor29 netbenton Posted 2009-04-17 14:17
银牌会员 Posts 752 Credits 1,916 From 广西
::Bidirectional Movement + Left and Right Text Scrolling



[ Last edited by netbenton on 2009-4-17 at 22:32 ]
Floor30 wseemed Posted 2009-04-18 00:58
初级用户 Posts 24 Credits 29 From 河南
Newcomer passing by, learned it
Prev  1 2 3  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023