Search found 100 matches

by Sounak@9434
08 Mar 2017 07:33
Forum: DOS Batch Forum
Topic: Setup a batch macro by calling a different file
Replies: 11
Views: 9206

Re: Setup a batch macro by calling a different file

setlocal DisableDelayedExpansion set LF=^ ... set @endlocalMacro=for ... %@endlocalMacro% @endlocalMacro setlocal DisableDelayedExpansion set LF=^ ... set @myNextMacro=... %@endlocalMacro% @myNextMacro jeb Thanks jeb, but I'm not sure about which '@endlocalMacro' you are talking about. Is it this o...
by Sounak@9434
07 Mar 2017 21:59
Forum: DOS Batch Forum
Topic: Setup a batch macro by calling a different file
Replies: 11
Views: 9206

Re: Setup a batch macro by calling a different file

Why so complicated? Just take the :strLen function and modify it in order to avoid the call of a label and insert it into your code. ::Skipped Steffen @aGerman: I am actually using it this way at this moment but I'm just curious if a batch macro can be set up by a different file. Like we add a 'loa...
by Sounak@9434
07 Mar 2017 02:31
Forum: DOS Batch Forum
Topic: Setup a batch macro by calling a different file
Replies: 11
Views: 9206

Setup a batch macro by calling a different file

Hello again everyone. This time I'm working with a batch macro. I'm working on a alignment macro. Here is the script. @echo off setlocal disabledelayedexpansion set ^"LF=^ %= This creates a variable containing a single linefeed (0x0A) character =% ^" set ^"\n=^^^%LF%%LF%^%LF%%LF%^^&qu...
by Sounak@9434
05 Mar 2017 06:45
Forum: DOS Batch Forum
Topic: Best way to transfer data between two windows
Replies: 7
Views: 5771

Re: Best way to transfer data between two windows

@Penpen: Thanks penpen. That helped in solving some of my old problems :)
by Sounak@9434
04 Mar 2017 20:49
Forum: DOS Batch Forum
Topic: Best way to transfer data between two windows
Replies: 7
Views: 5771

Re: Best way to transfer data between two windows

Just two questions here.
1) According to the 'cmd /?', the output of cmd command can be piped using /a or /u switch. True?
2) In Antonio's answer one script is using echo and the other is setting it up through pipe to set /p. So how come that solution work and 'echo abcd|set /p text=' Fails?
by Sounak@9434
03 Mar 2017 21:09
Forum: DOS Batch Forum
Topic: Best way to transfer data between two windows
Replies: 7
Views: 5771

Re: Best way to transfer data between two windows

Making it more clear, There should be two separate cmd windows.
One would take data through 'set /p' and sent the input string two the other cmd window. It would receive the string and show it on screen.
by Sounak@9434
03 Mar 2017 11:42
Forum: DOS Batch Forum
Topic: Best way to transfer data between two windows
Replies: 7
Views: 5771

Re: Best way to transfer data between two windows

@Aacini: It works fine but there are not two windows. Any ways :?:
by Sounak@9434
03 Mar 2017 08:23
Forum: DOS Batch Forum
Topic: Best way to transfer data between two windows
Replies: 7
Views: 5771

Best way to transfer data between two windows

Well, my target is simple. I have one window for input and another window for output. In one window you can type text which will be sent to the other window for analysis. Till now I'm using this script. ::Window one @echo off setlocal enabledelayedexpansion for /l %%a in () do ( set /p input=Input. ...
by Sounak@9434
16 Feb 2017 22:40
Forum: DOS Batch Forum
Topic: Hex To Little Endian
Replies: 5
Views: 5859

Re: Hex To Little Endian

@aGerman: Okay, my answer was actually made around the request and I thought a simple reversing tool could do the work. Maybe multiple calls could do the work but definitely it is slower as it uses 'call :label' .
Your new answer solves the problem. Great work Steffen. :D
by Sounak@9434
16 Feb 2017 00:42
Forum: DOS Batch Forum
Topic: Hex To Little Endian
Replies: 5
Views: 5859

Re: Hex To Little Endian

I'm a bit late, am not I? Though if you don't know the number of arguments you can also use this method. :reverse set reargs= call :reargs %* echo(%reargs% exit /b :reargs set "reargs=%1 %reargs%" shift if not "%1"=="" goto reargs call :reverse 1 2 3 4 5 6 7 8 9 10 10 9...
by Sounak@9434
15 Feb 2017 06:55
Forum: DOS Batch Forum
Topic: Mouse Hovering in Batch
Replies: 35
Views: 29230

Re: Mouse Hovering in Batch

Hello, you can see my external command darkbox which (recently) supports mouse input (and hovering) and keyboard key in the same time. See mouse(2).bat, knm(2).bat and it.bat in tests directory When I first saw knm(2).Bat I was like a I mean, really, this much faster. Seems like a server is much mo...
by Sounak@9434
10 Feb 2017 23:58
Forum: DOS Batch Forum
Topic: Advanced Batch features via auxiliary .exe programs
Replies: 76
Views: 214403

Re: Advanced Batch features via auxiliary .exe programs

aGerman wrote:But now I don't want to occupy Antonio's thread any longer... :wink:


:mrgreen:

That reminds me my initial request was for Antonio to update his getmouse.exe . Maybe he doesn't want to add keyboard support to a tool named getmouse.exe :D

Thanks though you all. You people are a great help.
by Sounak@9434
10 Feb 2017 10:02
Forum: DOS Batch Forum
Topic: Advanced Batch features via auxiliary .exe programs
Replies: 76
Views: 214403

Re: Advanced Batch features via auxiliary .exe programs

@aGerman: Thank you very much steffen. The latest version works beautifully. Thanks again. 3) Is the technique available for public? Everything noted in the source code. It's GCC specific. The underlying __start routine will be overridden. Whoa! Never realized that was the trick. I have to try it ou...
by Sounak@9434
10 Feb 2017 00:45
Forum: DOS Batch Forum
Topic: Help me with this inprofessional code!
Replies: 3
Views: 3830

Re: Help me with this inprofessional code!

I fixed the code above, the last code required delayed expansion to work. This one works without delayed expansion and fixed a small bug at the start for a better gui window.
by Sounak@9434
09 Feb 2017 23:32
Forum: DOS Batch Forum
Topic: Advanced Batch features via auxiliary .exe programs
Replies: 76
Views: 214403

Re: Advanced Batch features via auxiliary .exe programs

@aGerman: Cool Tool! Thanks Steffen. Just a few things:- 1) Does conin stands for con sole in put ? I know it's not a serious question, just asking though. 2) Is it possible to have a timer, so that if no input is given within a specified amount of time conin.exe will close itself? I'm too nit picky...