Search found 162 matches
- 16 Aug 2019 12:51
- Forum: DOS Batch Forum
- Topic: Call bug using silent operator @
- Replies: 2
- Views: 6183
Re: Call bug using silent operator @
While this is a very interesting find, it is SUBSTANTIALLY slower than using REM @echo off echo %time% for /l %%a in (1,1,1000000) do rem echo %time% echo. echo %time% for /l %%a in (1,1,1000000) do call @ this is a comment echo %time% pause 14:49:04.92 14:49:06.18 14:49:06.18 14:50:37.22 Press any ...
- 12 Aug 2019 08:50
- Forum: DOS Batch Forum
- Topic: Button functions via VT100, and Mouse.exe
- Replies: 3
- Views: 23369
Button functions via VT100, and Mouse.exe
Hello! I have been working on some functions that allow you to click the console with a 3rd party called Mouse.exe MOUSE.EXE -> http://www.mediafire.com/file/96p9tqu4d500fli/bin.zip https://gyazo.com/c29b59950891ce7924518676342ed030.gif I thought this would be a fun project to limit user input. Over...
- 11 Aug 2019 13:08
- Forum: DOS Batch Forum
- Topic: Pointer digital dual display clock - Windows 10 Console Virtual Terminal Sequences
- Replies: 2
- Views: 6917
Re: Pointer digital dual display clock - Windows 10 Console Virtual Terminal Sequences
Absolutely beautiful execution! I love graphical scripts like this, and you're consistent! Very well done! Excellent use of math. Bravo, sir!
- 17 Jun 2019 13:37
- Forum: DOS Batch Forum
- Topic: Animated loading screen
- Replies: 8
- Views: 19040
Re: Animated loading screen
Generally whatever it is that is loading, you can prompt it within the code to do so. For example... @echo off for /l %%a in (1,1,100) do ( cls echo Currently working: %%a... ) echo done pause This "loading" would be quite fast though. If you're looking for something "PURELY" aesthetic, then that is...
- 29 May 2019 22:02
- Forum: DOS Batch Forum
- Topic: Text Files - Coloured Characters
- Replies: 6
- Views: 7366
Re: Text Files - Coloured Characters
-snip- I very much appreciate you using MY code as an example! How exciting :) OP, Here are some examples of coloring with VT100. Mind you, this is a WIN10 feature. The method below is using string substitution. You will notice VT100 colors very quickly. @echo off & setlocal enableDelayedExpansion ...
- 11 May 2019 10:11
- Forum: DOS Batch Forum
- Topic: Microsoft New Terminal - Thoughts???
- Replies: 1
- Views: 3444
Microsoft New Terminal - Thoughts???
https://youtu.be/KMudkRcwjCw
Above is the link to the video!
I'm curious about thoughts on the new terminal? I still have so many questions. It is said to release "winter" 2019
Above is the link to the video!
I'm curious about thoughts on the new terminal? I still have so many questions. It is said to release "winter" 2019
- 07 May 2019 22:07
- Forum: DOS Batch Forum
- Topic: Fire-Colored particle system
- Replies: 6
- Views: 6457
Fire-Colored particle system
Hello everyone, Here is a particle system! they change colors as they rise. Not much to be impressed about, just a fun visual. Enjoy! https://gyazo.com/eb85e26ab0ea2079abdde05b67600143.gif @echo off & setlocal enableDelayedExpansion ( for /f %%a in ('echo prompt $E^| cmd') do set "esc=%%a" ) & echo ...
- 07 May 2019 22:04
- Forum: DOS Batch Forum
- Topic: 3D points to 2D projection
- Replies: 0
- Views: 19167
3D points to 2D projection
Hello! I have been experimenting with 3D points, and I am seeking further knowledge! If anyone can lead me to some valuable threads or sites I would very much appreciate it! Thanks in advanced :) https://gyazo.com/840f9d75eff0f545aea7b69b9b5e0b15.gif @echo off & setlocal enableDelayedExpansion call ...
- 07 May 2019 21:59
- Forum: DOS Batch Forum
- Topic: The beauty of Recursion
- Replies: 0
- Views: 18957
The beauty of Recursion
Just wanted to share some simple recursive functions as a friendly reminder that recursion is our friend! No help necessary unless you really just find this neat. Please enjoy :) https://gyazo.com/aae956c231d70874a04e8faf1feb270d.png @echo off & setlocal enableDelayedExpansion & call :math :main cal...
- 02 May 2019 09:42
- Forum: DOS Batch Forum
- Topic: LERP() function
- Replies: 4
- Views: 5068
Re: LERP() function
Hey! Thanks for the performance update! More or less, I just wanted to demonstrate the function with some very readable code. My hopes were that it would appear "easy to use". LERP is useful for a lot things, but I am still learning about it. The code below demonstrates how LERP can be used to "foll...
- 01 May 2019 23:35
- Forum: DOS Batch Forum
- Topic: LERP() function
- Replies: 4
- Views: 5068
Re: LERP() function
Solved my original problem, and released the function. Hope it comes useful!
- 30 Apr 2019 22:59
- Forum: DOS Batch Forum
- Topic: LERP() function
- Replies: 4
- Views: 5068
LERP() function
Hello, I finally figure out my LERP function formula! Please view https://en.wikipedia.org/wiki/Linear_interpolation set "lerp=?=(a+c*(b-a)*1000)/100000+a" Tested with this code, trying to simulate the "chaos game" @echo off & setlocal enableDelayedExpansion & mode 100,100 ( for /f %%a in ('echo pro...
- 12 Apr 2019 09:17
- Forum: DOS Batch Forum
- Topic: pass value to string handle function failed
- Replies: 8
- Views: 6787
Re: pass value to string handle function failed
sincos2007 wrote: ↑12 Apr 2019 04:02Hi IcarusLives,
Could you show me how to expand !count_of_chars! inside ()?
Thanks
Code: Select all
call echo %%input_line:~0,!count_of_chars!%%
or
for %%i in (!count_of_chars!) do echo !input_line:~0,%%i!
- 11 Apr 2019 23:58
- Forum: DOS Batch Forum
- Topic: pass value to string handle function failed
- Replies: 8
- Views: 6787
Re: pass value to string handle function failed
hi Steffen, I have test the code you post, it really works. Thanks. There is another code related to this topic which not work: :test4 echo on setlocal EnableDelayedExpansion set "input_line=1234567" set "n=1" for /l %%i in (1,1,7) do ( set "count_of_chars=!n!" echo !input_line:~0,%count_of_chars%!...
- 28 Mar 2019 07:07
- Forum: DOS Batch Forum
- Topic: Need help with a game
- Replies: 2
- Views: 3621
Re: Need help with a game
One important thing to remember is that batch scripts run from top to bottom. I want the text of your answer to be echo just after the "Me: ", now it is just marking 1. The other thing is that I want the all "Answers choice" part to be deleted. You need to remember that you have not mapped an array ...