Search found 175 matches

by IcarusLives
11 Aug 2024 04:29
Forum: DOS Batch Forum
Topic: Mandelbrot Set, 14 levels of zoom - Pure batch
Replies: 0
Views: 13868

Mandelbrot Set, 14 levels of zoom - Pure batch

https://raw.githubusercontent.com/IcarusLivesHF/Batch-Script-Projects/main/mandelbrot/mandelbrot_screenshots/cmd_23sZuUPG68.png https://raw.githubusercontent.com/IcarusLivesHF/Batch-Script-Projects/main/mandelbrot/mandelbrot_screenshots/cmd_ZCFO81Xq5I.png You can find the code for them here: https:...
by IcarusLives
06 Aug 2024 19:48
Forum: DOS Batch Forum
Topic: 3D Cube Orthographic Projection
Replies: 4
Views: 24530

Re: 3D Cube Orthographic Projection

Update: created %@box% for read/usability angleX, angleY, and angleZ are now independent from each other Uses DDALine instead of BresenhamLine now This version you can change each angle by using keys QA, WS, ED,and size based on RF. Press T to quit @echo off & setlocal enableDelayedExpansion if "%~1...
by IcarusLives
30 Jul 2024 11:53
Forum: DOS Batch Forum
Topic: Reduced-Flicker in dos batch. It's possible?
Replies: 40
Views: 122548

Re: Reduced-Flicker in dos batch. It's possible?

He is more than well aware of vt100 and escape sequences. If he was trying to use them to avoid flicker in window *7*, then it just *wouldn't work*. Why would he bother writing "for windows *7* or later" if he planned on using vt100?
by IcarusLives
30 Jul 2024 11:21
Forum: DOS Batch Forum
Topic: Reduced-Flicker in dos batch. It's possible?
Replies: 40
Views: 122548

Re: Reduced-Flicker in dos batch. It's possible?

miskox wrote:
30 Jul 2024 01:46
What happens if you remove CLS (only one CLS at the beginning) and move cursor with escape sequences?

Saso
It would probably help you if you read his code. It's not for windows 10.
by IcarusLives
13 Jun 2024 05:50
Forum: DOS Batch Forum
Topic: Detect/Correct Window size
Replies: 1
Views: 20868

Re: Detect/Correct Window size

I withdraw my question. Please close. Sorry, and thank you.
by IcarusLives
12 Jun 2024 13:54
Forum: DOS Batch Forum
Topic: Detect/Correct Window size
Replies: 1
Views: 20868

Detect/Correct Window size

Hello, I just want to see if anyone here can help me understand something. When parsing MODE, why will it detect when the window is enlarged, but when I shrink the window, it does not seem to realize it? I explicitly clear the temporary test values twid,thei(test wid test hei), yet it just.. does no...
by IcarusLives
03 Jun 2024 11:58
Forum: DOS Batch Forum
Topic: Single Pendulum
Replies: 0
Views: 16105

Single Pendulum

Hello, I just wanted to share something. Happy coding! https://github.com/IcarusLivesHF/Batch-Script-Projects/tree/main/pendulum https://imgur.com/coS9Cv1.gif @echo off & setlocal enableDelayedExpansion call :init set /a "angle=pi / 4",^ "angleA=0, angleV=0",^ "gravity=16",^ "mass=4",^ "origin.x=wid...
by IcarusLives
30 May 2024 05:07
Forum: DOS Batch Forum
Topic: Do not expand Comments
Replies: 5
Views: 13760

Re: Do not expand Comments

In batch scripting, comments are lines of text that are not executed as commands. They are used to explain and document the code, making it easier to understand and maintain. In batch scripts, comments can be created using the REM command. REM This is a comment REM this is also a comment echo Hello ...
by IcarusLives
17 May 2024 11:46
Forum: DOS Batch Forum
Topic: dir ????????.txt does not show only files with length of 8 characters
Replies: 7
Views: 18989

Re: dir ????????.txt does not show only files with length of 8 characters

Apologies for the oversight. @echo off & setlocal enableDelayedExpansion for /f "delims=" %%i in ('dir /b "*.txt"') do ( set "str=A%%~ni" set "len=0" for /L %%A in (12,-1,0) do ( set /a "len|=1<<%%A" for %%B in (!len!) do if "!str:~%%B,1!"=="" set /a "len&=~1<<%%A" ) if !len! equ 8 ( echo %%~i ) ) p...
by IcarusLives
17 May 2024 07:19
Forum: DOS Batch Forum
Topic: dir ????????.txt does not show only files with length of 8 characters
Replies: 7
Views: 18989

Re: dir ????????.txt does not show only files with length of 8 characters

I'd just check the name length directly.

Code: Select all

for /f "delims=" %%i in ('dir /b "*.txt"') do (
	set "current=%%i"
	if /i "!current:~9!" neq "" (
		echo %%~i
	)
)
by IcarusLives
07 May 2024 07:46
Forum: DOS Batch Forum
Topic: Dinosaur Game from Chrome in Batch - Remake
Replies: 4
Views: 13860

Dinosaur Game from Chrome in Batch - Remake

Hello!

This game is made 100% pure batch, utilizing Vt100 and multi-threading for the desired effects.

enjoy :)

Image

Code:
https://github.com/IcarusLivesHF/Batch- ... meGame.bat

Code: Select all

Controls:
    W:   Jump
    TAB: QUIT
by IcarusLives
03 May 2024 08:27
Forum: DOS Batch Forum
Topic: Mask password with Asterisk
Replies: 16
Views: 46292

Re: Mask password with Asterisk

This is probably what you're looking for. I cannot recall where I found this code. Sorry about that. @echo off call :getPassword password echo Password:%password% pause exit /b rem Subroutine to get the password :getPassword returnVar set "_password=" for /f %%a in ('"prompt;$H&for %%b in (0) do rem...
by IcarusLives
26 Apr 2024 21:52
Forum: DOS Batch Forum
Topic: Dos Batch Math Library
Replies: 69
Views: 137354

Re: Dos Batch Math Library

I would like to contribute Cohen Kappa @echo off set "kappa=(((1000*(a+d)/(a+b+c+d)) - ((((10000*(a+c)/(a+b+c+d))*(10000*(a+b)/(a+b+c+d))) + ((10000*(b+d)/(a+b+c+d))*(10000*(c+d)/(a+b+c+d))))/100000)) * 1000 / (1000 - ((((10000*(a+c)/(a+b+c+d))*(10000*(a+b)/(a+b+c+d))) + ((10000*(b+d)/(a+b+c+d))*(10...
by IcarusLives
22 Jan 2024 06:26
Forum: DOS Batch Forum
Topic: 3D Cube Orthographic Projection
Replies: 4
Views: 24530

Re: 3D Cube Orthographic Projection

Thank you for the suggestions! I will make an update accordingly, and republish soon. Thank you for your time and appreciation!

OP EDITED: Thanks for suggestions :)