Search found 960 matches
- 11 Oct 2024 05:11
- Forum: DOS Batch Forum
- Topic: help with multilinea macro in not delayed
- Replies: 4
- Views: 27055
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: 27055
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: 27055
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: 121136
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: 121136
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: 121136
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: 121136
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: 58842
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: 38975
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: 84838
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: 38975
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: 61250
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...
- 29 Jun 2024 03:46
- Forum: DOS Batch Forum
- Topic: %MM% v0.2a - a full-featured WinNT math macro
- Replies: 25
- Views: 61250
Re: %MM% v0.2a - a full-featured WinNT math macro
I was trying the exponential function today and stayed when I tried to do 0^4.
It should come back 0,
but the macro returns 1.
I'm trying to figure out how to fix it but it's not easy at all.
Code: Select all
%mm% 0 $ 4
echo %mm_%
but the macro returns 1.
Code: Select all
1
- 27 May 2024 17:22
- Forum: DOS Batch Forum
- Topic: (nearly) ieee 754 floating point single precisition
- Replies: 47
- Views: 70235
Re: (nearly) ieee 754 floating point single precisition
ok, I was going crazy to figure out that +1.
These days I've had to slow down because my only PC is having problems and isn't working well.
These days I've had to slow down because my only PC is having problems and isn't working well.
- 25 May 2024 07:48
- Forum: DOS Batch Forum
- Topic: (nearly) ieee 754 floating point single precisition
- Replies: 47
- Views: 70235
Re: (nearly) ieee 754 floating point single precisition
thanks. I got to the point "divide h.ighlow by 2 (updating the e_2 value) until 1 <= h.ighlow < 2". set "string= 8 4 2 " for %%a in ("!high:~0,1!") do @for %%b in (!string:~-%%~a!) do @( >nul set /A "c=(high&1)+1" set "low=!c!!low!" >nul set /A "high>>=1", "low=(low>>1)-50000000", "e_2+=1" set "low=...