Search found 963 matches
- 03 May 2025 08:40
- Forum: DOS Batch Forum
- Topic: 3D rotating donut
- Replies: 5
- Views: 4230
Re: 3D rotating donut
... "_SIN=a-a*a/1920*a/312500+a*a/1920*a/15625*a/15625*a/2560000-a*a/1875*a/15360*a/15625*a/15625*a/16000*a/44800000" this seemed to have an algorithm protection ex) 1+3 =4 or (1/2 + 3/40*20)*200/100=4 there is no protection, if you calculate the third term for x=7000, with your formula it gives 13...
- 28 Feb 2025 03:31
- Forum: DOS Batch Forum
- Topic: Dos Batch Math Library
- Replies: 73
- Views: 229867
Re: Dos Batch Math Library
@miskox I'm trying that formula 10000*y/10/2 and mathematically since there is a multiplication by 10000 (which has 2 and 5 among the prime factors) the division by these should give an exact integer result without remainder or fractional part. That is, for any Y in that formula there is no remainde...
- 25 Nov 2024 10:58
- Forum: DOS Batch Forum
- Topic: SET /A overflow
- Replies: 7
- Views: 15646
Re: SET /A overflow
... In addition worked around the bug: "if 2147483647 LSS -1 echo true" echoes "true" on windows xp home 32 bit (?!) but it's not a bug only for "-1" it does it for all the pairs that have the same representation and with the bit sign different. At least it seems to me. On win10 if 2123153877 lss -...
- 11 Oct 2024 05:11
- Forum: DOS Batch Forum
- Topic: help with multilinea macro in not delayed
- Replies: 4
- Views: 40454
Re: help with multilinea macro in not delayed
basically the question is this. Is it possible to bypass the endlocal barrier/tunnel inside a call of variables that have LF or in any case the code to create multiline macros? I enter the procedure with the value of the delayed variables or active or inactive, then I activate it if necessary, I do ...
- 22 Sep 2024 14:52
- Forum: DOS Batch Forum
- Topic: help with multilinea macro in not delayed
- Replies: 4
- Views: 40454
Re: help with multilinea macro in not delayed
I explained myself badly. I expanded the code hoping that you can understand where I'm having difficulty I have a code that reads a file and prepares the macro in this format: set macro=<code>[LF]<code>[LF]<etc> @echo off setlocal enabledelayedexpansion rem From Honguito98 idea call :AutomacroLite "...
- 22 Sep 2024 06:06
- Forum: DOS Batch Forum
- Topic: help with multilinea macro in not delayed
- Replies: 4
- Views: 40454
help with multilinea macro in not delayed
unfortunately with macros and the various /escape/ etc substitutions I have never been able to. I am making a "Lite" version of the "automacro" program that Terry T3rror made https://www.dostips.com/forum/viewtopic.php?f=3&t=11339 . This is because I need to keep the macros also in the form of subpr...
- 31 Jul 2024 12:32
- Forum: DOS Batch Forum
- Topic: Reduced-Flicker in dos batch. It's possible?
- Replies: 40
- Views: 164092
Re: Reduced-Flicker in dos batch. It's possible?
2icarius and 2einstein: I don't want to argue. I just thought that it was obvious to use ESC sequences for Win10+ without writting this (maybe somebody has Win10 only so this would look better). Or to have two different codes or one code with a check if OS WIN10+ or not. Saso yes yes it's better to...
- 30 Jul 2024 17:25
- Forum: DOS Batch Forum
- Topic: Reduced-Flicker in dos batch. It's possible?
- Replies: 40
- Views: 164092
Re: Reduced-Flicker in dos batch. It's possible?
I also wanted to tell Antonio that when he said that cmd couldn't postpone writing and did it right away, he was right. But it's exactly because of that way that the flickering could be created. Instead, if we ask it to write when everything is updated and maybe the "time" variable is also updated. ...
- 30 Jul 2024 17:11
- Forum: DOS Batch Forum
- Topic: Reduced-Flicker in dos batch. It's possible?
- Replies: 40
- Views: 164092
Re: Reduced-Flicker in dos batch. It's possible?
be good don't argue. The issue has been in limbo for a long time. Actually that code was written when windows 10 didn't have escape sequences yet. So that code was developed when escape sequences didn't exist so it didn't include the use of windows 10 sequences. At the time other mechanisms were use...
- 29 Jul 2024 17:41
- Forum: DOS Batch Forum
- Topic: Reduced-Flicker in dos batch. It's possible?
- Replies: 40
- Views: 164092
Re: Anti-Flicker in dos batch.
I replied with my point that the Windows 7 "timer coalescing" feature have no relation with %time% variable nor with the display of characters on the screen, but that any decrease in the screen refresh rate (like a wait for a change on %time% variable) will decrease the flicker. after many years i ...
- 23 Jul 2024 05:13
- Forum: DOS Batch Forum
- Topic: non-buffering FOR /F alternative
- Replies: 9
- Views: 69482
Re: non-buffering FOR /F alternative
steffen, if your problem is reading the pipe directly you have to pack the output of your program up to 1023 chars and you don't need the delay and you save cpu.
- 16 Jul 2024 16:14
- Forum: DOS Batch Forum
- Topic: Problems using parameters in a STARTed Batch file
- Replies: 10
- Views: 52137
Re: Problems using parameters in a STARTed Batch file
It's definitely because I'm on Windows 10. Anyway, thanks
- 16 Jul 2024 14:35
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 26
- Views: 132702
Re: strLen boosted
very interesting, I'm doing some speed testing. this is a first version, I have to make a macro of it to see the actual speed that the call keeps hidden from me. :strlen_small str set "$=A!%1!" if "!$:~4095,1!" neq "" (set "$=!$:~4095!" & set "$len=4094") else set "$len=-1" if "!$:~255,1!" neq "" ( ...
- 16 Jul 2024 14:30
- Forum: DOS Batch Forum
- Topic: Problems using parameters in a STARTed Batch file
- Replies: 10
- Views: 52137
Re: Problems using parameters in a STARTed Batch file
damn I was expecting to see the emoji in the cmd window, but it didn't appear...
I used the same font as the editor, notepad, consolas, you can see them
its normal?
I used the same font as the editor, notepad, consolas, you can see them
its normal?
- 29 Jun 2024 04:41
- Forum: DOS Batch Forum
- Topic: %MM% v0.2a - a full-featured WinNT math macro
- Replies: 25
- Views: 78507
Re: %MM% v0.2a - a full-featured WinNT math macro
I tried applying a patch. This is the proposed modified code. from: %= ($)Power Of =%IF !p!==$ (SET p=\^&SET u2=%= 'powerOf - set op=multiply, check for integer/0/1 exponent =%%\n% %= =%IF !s22! NEQ 0 SET o2=0^&SET g=X^&ECHO Non-integer exponent.^>^&2%\n% %= =%IF !o1! LEQ 1 SET o2=0%= 'i=o2=0 will e...