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
Search found 161 matches
- 22 Jan 2024 06:26
- Forum: DOS Batch Forum
- Topic: 3D Cube Orthographic Projection
- Replies: 3
- Views: 2330
- 21 Jan 2024 15:26
- Forum: DOS Batch Forum
- Topic: 3D Cube Orthographic Projection
- Replies: 3
- Views: 2330
3D Cube Orthographic Projection
Hello everyone, I'm more than certain you guys at dostips could find ways to improve this, but I'm still happy to share :mrgreen: References: https://en.wikipedia.org/wiki/Orthographic_projection https://en.wikipedia.org/wiki/Rotation_matrix Update: Allows use of TAB key to quit, uses %esc% captured...
- 18 Dec 2023 06:31
- Forum: DOS Batch Forum
- Topic: How can a batch lower the priority ONLY of the cmd that runs it?
- Replies: 1
- Views: 2521
Re: How can a batch lower the priority ONLY of the cmd that runs it?
You need to either use %~f0 or define scriptName
- 16 Dec 2023 05:22
- Forum: DOS Batch Forum
- Topic: How to make an underscore variable "-----" with the length of the argument variable?
- Replies: 5
- Views: 6026
Re: How to make an underscore variable "-----" with the length of the argument variable?
Here is the second concept that Squashman recommended where you take a long buffer of "----" and substring to the correct length, saving you time on doing a for loop each time. @echo off SETLOCAL ENABLEDELAYEDEXPANSION set "hiddenChars=----------------------------------------------------------------...
- 22 Nov 2023 07:08
- Forum: DOS Batch Forum
- Topic: Problem passing parameters by ref in for /R
- Replies: 3
- Views: 14144
Re: Problem passing parameters by ref in for /R
The only way I could solve it was like this :create_folders1 set "param=!%~1!" for /R "%param%" %%D in (*.*) do echo working... echo "!%~1!" goto :eof I'm not 100%, but I think it's because of the order of which things are happening, and I think the step which variable expansion happens, happens too...
- 03 Nov 2023 06:13
- Forum: DOS Batch Forum
- Topic: Foxidrive has left us
- Replies: 42
- Views: 167217
Re: Foxidrive has left us
In the code of life, Foxidrive left behind an indelible legacy, and in our hearts, they remain a brilliant friend whose memory continues to light our path.
- 25 Oct 2023 06:28
- Forum: DOS Batch Forum
- Topic: Another amazing porting...
- Replies: 14
- Views: 76135
Re: Another amazing porting...
Hello einstein!
I hope you're doing well. Amazing work as always. Seems to perform really well on my low grade acer laptop.
Thanks for sharing!
P.s I haven't forgotten the 3D rose you wanted to do. Though I still have no idea how to do it, I still think it would be very fun. Cheers!
I hope you're doing well. Amazing work as always. Seems to perform really well on my low grade acer laptop.
Thanks for sharing!
P.s I haven't forgotten the 3D rose you wanted to do. Though I still have no idea how to do it, I still think it would be very fun. Cheers!
- 02 Oct 2023 05:21
- Forum: DOS Batch Forum
- Topic: Batch native: a collection of dll's for cmd
- Replies: 2
- Views: 12074
Re: Batch native: a collection of dll's for cmd
Personally, I'd like to see a more standardized output from the xbox controllers. Would be really fun to use otherwise.
- 14 Jun 2023 08:37
- Forum: DOS Batch Forum
- Topic: How to convert argument list to skip first argument?
- Replies: 5
- Views: 2099
Re: How to convert argument list to skip first argument?
You could do it this way @echo off & setlocal enableDelayedExpansion call :function "one" "two" "three" "four" "five" pause & exit :function set /a "SKIP=1", "args=0" set /a "start=1 + skip" for %%i in (%*) do ( set /a "args+=1" set "func[!args!]=%%~i" ) for /l %%i in (%start%,1,%args%) do ( echo !f...
- 01 Jun 2023 04:15
- Forum: DOS Batch Forum
- Topic: Dos Batch Math Library
- Replies: 68
- Views: 92381
Re: Dos Batch Math Library
Hey thanks, Aacini! The formula written this way makes much more sense!
- 31 May 2023 09:09
- Forum: DOS Batch Forum
- Topic: Dos Batch Math Library
- Replies: 68
- Views: 92381
Re: Dos Batch Math Library
Here's a macro to CLAMP an integer between a low and high value. Given a value x and upper and lower bounds a and b respectively, the clamp function clamp(x, a, b) restricts the value of x within the range [ a , b ] by returning the nearest value to x that lies within this range. The clamp formula c...
- 29 May 2023 16:43
- Forum: DOS Batch Forum
- Topic: How to clear an array?
- Replies: 9
- Views: 4894
Re: How to clear an array?
don't see any advantage in using your proposed notation to write arrays It is *not* an array notation. Maybe you understand better with set __somevar=abc set __anothervar=123 I personally think your way of doing it is very interesting! I like to do both ways! Depends on what I am doing. Let me expl...
- 27 Apr 2023 17:51
- Forum: DOS Batch Forum
- Topic: DosBatch 3D Engine.
- Replies: 36
- Views: 34222
Re: DosBatch 3D Engine.
New Release 0.03 with rainbow colors and dinamic model. Try it and let me know how fast your processor is. I did my best to optimize the code. I hope it's fast enough even on old pcs. use VT escape sequence avaible in windows 10. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::...
- 22 Apr 2023 13:34
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45491
Re: 256 colors in virtual terminal escape sequence
I'm surprised you've taken this so far
Though you've lost me by now, I'm still excited to see where you end up with this.
Though you've lost me by now, I'm still excited to see where you end up with this.
- 22 Apr 2023 07:15
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45491
Re: 256 colors in virtual terminal escape sequence
GIMP.exe https://gyazo.com/182f9f516beb42945a175fd228927d57.png set /A "%4=((%1)*6/256)*36+((%2)*6/256)*6+((%3)*6/256)+16" https://gyazo.com/94d8bb40da10b3ec9ac2625ea6982496.png set /A "%4=((%1-30)*6/256)*36+((%2-30)*6/256)*6+((%3-30)*6/256)+16" https://gyazo.com/24179cfc2b9acd39486565c3eb0a9fad.png...