Search found 89 matches

by shodan
01 Aug 2024 20:50
Forum: DOS Batch Forum
Topic: Reduced-Flicker in dos batch. It's possible?
Replies: 40
Views: 121277

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

Hello,

Would it work to use

CreateConsoleScreenBuffer

To create a console text buffer, write to this back buffer and then flip the buffers with SetConsoleActiveScreenBuffer instantly (or possibly along with vsyncs ?)
by shodan
01 Aug 2024 20:47
Forum: DOS Batch Forum
Topic: How to output a range of lines from a text file using findstr
Replies: 5
Views: 23732

Re: How to output a range of lines from a text file using findstr

Thanks Aacini !
That looks like exactly what I needed.

T3RRY,
I am curious if the pipe of two finstr command ends up being faster than doing the filtering with this method.
Assuming we only need a few hundred lines out of say 10000 lines input text ?
by shodan
10 Jun 2024 19:14
Forum: DOS Batch Forum
Topic: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !
Replies: 11
Views: 52148

Re: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !

Demonstration of the latest getsubstring demo function https://youtu.be/ssmgLOfvWSY https://youtu.be/HZ7tgGAgglQ ::Usage Call :GetSubstringTestHelper [GetSubstringTestHelper arguments] :GetSubstringTestHelper set "_GetSubstringTestHelper_prefix=_GSTH" setlocal enabledelayedexpansion set "_GSTH_Space...
by shodan
10 Jun 2024 04:39
Forum: DOS Batch Forum
Topic: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !
Replies: 11
Views: 52148

Re: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !

Updated :GetSubstringIndex Should now support multiple delimiters of any lengths, not sure what the limits are new test file, which includes tests based on GetTestArray Next I should have a proper split working ! GetSubstringIndex-DEMO.zip REM [NODEREFERENCE] to disable byref ::Usage Call :GetSubstr...
by shodan
09 Jun 2024 23:06
Forum: DOS Batch Forum
Topic: :CreateTestArray function for making array of random strings with lots of options
Replies: 0
Views: 22546

:CreateTestArray function for making array of random strings with lots of options

Here is a visual demo of running this function https://youtu.be/bs8lVi1q9-0 Here is the full test file GetSubstringIndex-DEMO.zip Here is the code to make these test arrays call :CreateTestArray OutputArray 100 "All F base array, all G delimiter" "OVERRIDE 70" 100 Delimiter "OVERRIDE 71" 10 call :Cr...
by shodan
09 Jun 2024 19:54
Forum: DOS Batch Forum
Topic: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !
Replies: 11
Views: 52148

Re: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !

Here is the new demo for these functions demo file InsertString-demo.zip :InsertString-demo set "_InsertString_demo_testvar=A123456789B123456789C123456789D123456789E123456789F123456789G123456789H123456789I123456789J123456789" REM Call :InsertString _InsertString_demo_testvar _InsertString_demo_outpu...
by shodan
09 Jun 2024 19:52
Forum: DOS Batch Forum
Topic: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !
Replies: 11
Views: 52148

Re: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !

Improved version of :ReplaceString :InsertString :DeleteString ::Usage Call :DeleteString InputString OutputString [REPEAT Count]|[ALL][APPEND][OVERSPLIT][LEN DelimiterLen][RESET] InsertIndex1 InsertString1 ... [REPEAT Count]|[ALL][APPEND][OVERSPLIT][LEN DelimiterLen][RESET] InsertIndexN InsertStrin...
by shodan
03 Jun 2024 01:32
Forum: DOS Batch Forum
Topic: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !
Replies: 11
Views: 52148

Re: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !

Hi, For now I just want a split function that can take multiple delimiters, maybe if that's not too hard, multiple dimension arrays, then I'll see what else from the list I can add. I want to try avoiding powershell as I try to make scripts that should run anywhere windows 2000 and up. Also I would ...
by shodan
01 Jun 2024 03:37
Forum: DOS Batch Forum
Topic: Difficulty getting font dimensions with powershell
Replies: 0
Views: 41338

Difficulty getting font dimensions with powershell

Hi, I've made these simple batch functions, that obtain font size, font width and font height using a powershell/C# hybrid oneliner Using this command, you can set the font size to every size from 1 to 40 And then print out the font dimensions for /l %a in (1,1,40) do (SetFontSize %a & GetFontdimens...
by shodan
31 May 2024 22:07
Forum: DOS Batch Forum
Topic: I think someone could make a convolutional neural net out of pure batch
Replies: 1
Views: 31900

I think someone could make a convolutional neural net out of pure batch

See this CNN made out of redstone in minecraft

https://www.youtube.com/watch?v=DQ0lCm0J3PM

If that's possible in minecraft, it should be easier in batch right ?

He even uses all integer math
by shodan
30 May 2024 15:21
Forum: DOS Batch Forum
Topic: Do not expand Comments
Replies: 5
Views: 13669

Re: Do not expand Comments

This sort of question is also easily answered by chatgpt https://chatgpt.com/share/da842c3a-90e3-4b0d-8c43-ed6f2b367e66 Example AI discussion USER I would like to show a comment that is not expanded and the expanded version of the command. I have a batch file with commands: @Echo Off Echo ^%^%~dp0^%...
by shodan
30 May 2024 00:23
Forum: DOS Batch Forum
Topic: Do not expand Comments
Replies: 5
Views: 13669

Re: Do not expand Comments

Like this ? C:\Users\user\BatchfileFrameWork\lib\experimental>variablecommenting.bat %~dp0 = C:\Users\user\BatchfileFrameWork\lib\experimental\ %cd% = C:\Users\user\BatchfileFrameWork\lib\experimental %~d0 = C: %~p0 = \Users\user\BatchfileFrameWork\lib\experimental\ %~fn0 = C:\Users\user\BatchfileFr...
by shodan
26 May 2024 15:12
Forum: DOS Batch Forum
Topic: Batch File for SpinText system
Replies: 1
Views: 12618

Re: Batch File for SpinText system

I would copy all matches position to a temp file, writing line, index, length of the word and from which library it is As you go through your input text the subsequent times, for each matches check the temp file to see if that match already exists and only add a new match if it doesn't Once all your...
by shodan
25 May 2024 21:40
Forum: DOS Batch Forum
Topic: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !
Replies: 11
Views: 52148

Re: Fast and robust :GetSubstringIndex :ReplaceString :CreateRandomStringPS functions !

Latest improvements of my split function It's a lot less convoluted and much faster Still breaks on poison characters however. still need to implement, multiple delimiters, optional startindex, optional limit, loosen up the parameters at least to allow CASESENSITIVE anywhere. After that it will need...