Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch file that generates lots of text  (Read 4696 times)

0 Members and 1 Guest are viewing this topic.

mauritswoudenberg

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Unknown
    Batch file that generates lots of text
    « on: August 08, 2017, 01:16:45 PM »
    Hi,

    I am working on a project in which I want a screen to show lots of text being generated. A bit like that effect in the matrix.

    I was thinking about making a of batch file to do some silly task in a loop like looking for a file in a folder and if its there rename it and then start looking for that file to rename it again, etc.

    This works, but since it only generates 4 lines of text you kind of start to see the repetition, even though its much too fast to read.

    Does anyone know some harmless task that I can put in a batch file to make it run more text?

    Thank you!!


    Hackoo



      Hopeful
    • Thanked: 42
    • Experience: Expert
    • OS: Windows 10
    Re: Batch file that generates lots of text
    « Reply #1 on: August 08, 2017, 04:33:07 PM »
    Hi  ;)
    Can you show us what did you tried as code until now ?
    And explain more your aim !

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Batch file that generates lots of text
    « Reply #2 on: August 08, 2017, 04:40:19 PM »
    Silly...

    However...carry on...
    " Anyone who goes to a psychiatrist should have his head examined. "

    mauritswoudenberg

      Topic Starter


      Newbie

      • Experience: Beginner
      • OS: Unknown
      Re: Batch file that generates lots of text
      « Reply #3 on: August 09, 2017, 07:06:35 AM »
      Hi,

      I found something that looks pretty good:

      @echo off
      color 0a
      :top
      echo %random% %random% %random% %random% %random% %random%
      goto top


      I added this line that pings some fake IP address to make it go a little slower:

      ping 10.109.199.199 -n 1 -w >nul

      But now I'd like to be able to stop the flow of numbers when I hit a certain key and show some "text" like this:


        _     _            _    _         
       | |    | |          |  | |  |       
       | |__|  |   __   |  | |  |    ___ 
       |  __   |  / _ \  |  | |  |  /  _  \
       | |    | | |  __/ |  | |  | |  (_)  |
       |_|   |_|  \__   |_| |_|  \ ___/
                                     
                                     
      does anyone know how to?



      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: Batch file that generates lots of text
      « Reply #4 on: August 09, 2017, 10:32:48 AM »
      What you want used to be called "Tele Type Art".
      Here is a Teletype machine:



      And here is some Teletype Art:

      Radio stations used to get this sort of thing at Christmas time.  Back in the days when Fax machines were not common. Somebody would spend hours making Art out of the letters of the Teletype.

      Some more.....
      http://taipeisignalarmy.blogspot.com/2010/09/teletype-art.html
      and...
      http://www.patorjk.com/software/taag/#p=display&f=Graffiti&t=Hello%20Folks.%0A


      Hackoo



        Hopeful
      • Thanked: 42
      • Experience: Expert
      • OS: Windows 10
      Re: Batch file that generates lots of text
      « Reply #5 on: August 09, 2017, 11:51:17 AM »
      Hi  ;)
      Just give a try for this batch file  ( Matrix Animation with DJ Buzz Radio ) in the attachments and tell me the result  ;D  :P


      [attachment deleted by admin to conserve space]

      Hackoo



        Hopeful
      • Thanked: 42
      • Experience: Expert
      • OS: Windows 10
      Re: Batch file that generates lots of text
      « Reply #6 on: August 11, 2017, 02:40:21 PM »
      Source code of Matrix Animation + DJ Buzz Radio

      Code: [Select]
      @echo off
      Title Matrix Animation with DJ Buzz Radio by Hackoo 2017
      mode con cols=64 lines=35 & color 0A
      echo(
      echo       Please wait a while ... DJ Buzz Radio is loading ...
      Call :Play_DJ_Buzz_Radio
      cls
      :Matrix
      echo  %random% %random%  Hackoo %random% %random% %random% %random% %random% %random% %random% %random%
      echo  %random%   %random% %random% %random%    %random%   %random% %random% %random%   %random%
      echo %random%   %random% %random% %random%  Hackoo  %random%   %random% %random% %random%   %random%
      echo  %random%   %random%%random% %random%    %random%   %random% %random% %random%   %random%
      echo  Hackoo   %random%  %random%   %random% %random%   %random%  %random% %random% %random%   %random%
      echo  %random%    %random%   %random% %random% %random%    %random%  %random% %random% %random% %random%
      echo %random%   %random%   %random% %random%    %random%     %random% %random% %random%
      echo  %random%   %random%   %random% %random%    %random%   %random% %random% %random%   %random%
      echo  %random%  %random% %random% %random% %random% %random% %random% %random%  %random%
      echo  %random%    %random%   %random% %random% %random%    %random%   %random% %random% %random% %random%
      echo %random%   %random% %random% %random%  Hackoo  %random%   %random% %random% %random%   %random%
      echo  %random%   %random% %random% %random%    %random%   %random% %random% %random%   %random%
      echo    %random%  %random%   %random% %random%    %random%    %random% %random% %random%   %random%
      echo   %random%   %random%   %random% %random% %random%    %random%  %random% %random% %random% %random%
      echo %random%   %random%   %random%%random%  Hackoo  %random%     %random%     %random% %random%
      echo  %random%   %random%   %random% %random%    %random%   %random% %random% %random% %random%
      echo   %random%   %random%    %random% %random% %random% %random% %random% %random% %random% %random%
      echo  %random%   %random% %random% %random%    %random%   %random% %random% %random%   %random%
      echo %random%   %random% %random% %random%  Hackoo %random%   %random% %random% %random%  %random%
      echo  %random%   %random% %random% %random%    %random%   %random% %random% %random% %random%
      echo    %random%  %random%   %random% %random%    %random%     %random% %random% %random%  %random%
      echo  %random% Hackoo   %random%   %random% %random% %random%    %random%  %random% %random% %random% %random%
      echo %random%   %random%   %random% %random%    %random%  Hackoo   %random%     %random% %random%
      echo  %random%   %random%   %random% %random%  %random%  %random%   %random% %random% %random% %random%
      set /a Counter+=1
      if "%Counter%" EQU "200" goto End_Animation
      ping 10.109.199.199 -n 1 -w >nul
      goto Matrix
      ::************************************************************************
      :End_Animation
      cls
      echo(
      echo Press enter button to continue .....
      runas /user:# "" >nul 2>&1
      cls
      :::
      :::      __   __  _______  ___      ___      _______
      :::     |  | |  ||       ||   |    |   |    |       |
      :::     |  |_|  ||    ___||   |    |   |    |   _   |
      :::     |       ||   |___ |   |    |   |    |  | |  |
      :::     |       ||    ___||   |___ |   |___ |  |_|  |
      :::     |   _   ||   |___ |       ||       ||       |
      :::     |__| |__||_______||_______||_______||_______|
      :::
      :::              _ _,---._
      :::           ,-','       `-.___
      :::          /-;'               `._
      :::         /\/          ._   _,'o \
      :::        ( /\       _,--'\,','"`. )
      :::         |\      ,'o     \'    //\
      :::         |      \        /   ,--'""`-.
      :::         :       \_    _/ ,-'         `-._
      :::          \        `--'  /                )
      :::           `.  \`._    ,'     ________,','
      :::             .--`     ,'  ,--` __\___,;'
      :::              \`.,-- ,' ,`_)--'  /`.,'
      :::               \( ;  | | )      (`-/
      :::                 `--'| |)       |-/
      :::                   | | |        | |
      :::                   | | |,.,-.   | |_
      :::                   | `./ /   )---`  )
      :::                  _|  /    ,',   ,-'
      :::                 ,'|_(    /-<._,' |--,
      :::                 |    `--'---.     \/ \
      :::                 |          / \    /\  \
      :::               ,-^---._     |  \  /  \  \
      :::            ,-'        \----'   \/    \--`.
      :::           /            \              \   \
      :::

      for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
      echo         Press any key to stop the DJ Buzz Radio
      pause>nul & Call :Stop_Radio & exit
      ::**************************************************************
      :Play_DJ_Buzz_Radio
      Taskkill /IM "wscript.exe" /F >nul 2>&1
      Set vbsfile=%temp%\DJBuzzRadio.vbs
      Set "URL=http://www.chocradios.ch/djbuzzradio_windows.mp3.asx"
      Call:Play %URL% %vbsfile%
      Start %vbsfile%
      Exit /b
      ::**************************************************************
      :Play
      (
      echo Play "%~1"
      echo Sub Play(URL^)
      echo Dim Sound
      echo Set Sound = CreateObject("WMPlayer.OCX"^)
      echo Sound.URL = URL
      echo Sound.settings.volume = 100
      echo Sound.Controls.play
      echo do while Sound.currentmedia.duration = 0
      echo wscript.sleep 100
      echo loop
      echo wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000
      echo End Sub
      )>%~2
      exit /b
      ::**************************************************************
      :Stop_Radio
      Taskkill /IM "wscript.exe" /F >nul 2>&1
      ::**************************************************************