-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from berttejeda/setup/cx_freeze-start-tutorial
Setup/cx freeze start tutorial
- Loading branch information
Showing
5 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@echo off | ||
:: Ghost typer | ||
setlocal enableextensions enabledelayedexpansion | ||
|
||
set lines=3 | ||
|
||
set "line1=tasks --help" | ||
set "line2=." | ||
set "line3=." | ||
|
||
echo Enter in 'tasks --help' to display basic usage | ||
ping localhost -n 1 >NUL | ||
|
||
call :example | ||
tasks --help | ||
|
||
call :wait 1 | ||
|
||
echo Launching README in 5 seconds ... | ||
call :wait 5 | ||
explorer C:\PROGRA~2\ANSIBL~1\README.html | ||
|
||
goto :EOF | ||
|
||
:wait | ||
ping localhost -n %~1 >NUL | ||
goto :EOF | ||
|
||
:example | ||
for /f %%a in ('"prompt $H&for %%b in (1) do rem"') do set "BS=%%a" | ||
for /L %%a in (1,1,%lines%) do set num=0&set "line=!line%%a!"&call :type | ||
goto :EOF | ||
|
||
:type | ||
set "letter=!line:~%num%,1!" | ||
set "delay=%random%%random%%random%%random%%random%%random%%random%" | ||
set "delay=%delay:~-2%" | ||
if not "%letter%"=="" set /p "=a%bs%%letter%" <nul | ||
|
||
:: adjust the 3 in the line below: higher is faster typing speed | ||
|
||
for /L %%b in (1,2,%delay%) do rem | ||
if "%letter%"=="" echo.&goto :EOF | ||
set /a num+=1 | ||
goto :type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters