Page 1 of 1

Graphic interface in Batch ? Is it possible ?

Posted: 11 Dec 2016 04:47
by bufoss
Hi all,
I am new in batch scripting and I would like to ask you
if there is any way to get graphical interface such as

I would like something like the attached image and only the menu to be refreshed.

Thanks in advance for your answers

Re: Graphic interface in Batch ? Is it possible ?

Posted: 11 Dec 2016 04:50
by ShadowThief
Well, that's just ASCII art, so yes. Multiple colors in the same line was cracked years ago.

http://stackoverflow.com/questions/4339 ... 11#5344911

Re: Graphic interface in Batch ? Is it possible ?

Posted: 07 Jan 2017 14:32
by Aspidiske
More specifically this is art ansi, until windows 98 support art ansi was loaded in the config.sys file, writing the following line:

devicehigh=ansi.sys

For windows 2000 onwards there is currently ansicon.exe

http://ansicon.adoxa.vze.com/

When installed ansicon you can read an ansi file with the following command:

Type art.ans


I recently posted a method to convert art ansi into batch

It is necessary for art to contain characters compatible batch.

Https://www.youtube.com/watch?v=YWXbQ_f0JIk

To create files in .ans format you have this application:

Http://picoe.ca/products/pablodraw

Re: Graphic interface in Batch ? Is it possible ?

Posted: 10 Jan 2017 06:27
by misol101
This is probably not at all what you had in mind, but it is what came into my mind when I heard "Graphic Interface in Batch" :)

Below is 3dGUI.bat. It was primarily meant to be mouse-controlled (drag left-right to scroll among items, click to select an item), but keys are also supported (left/right to scroll, SPACE to select the item in focus). If you get tired of the "swinging" effect of the items while scrolling, press RETURN to disable/enable.

The script is now included in the cmdgfx archive. See http://www.dostips.com/forum/viewtopic.php?f=3&t=7153

Screens (it obviously looks better when actually moving):

Image
3dgui.bat

Image
3dgui.bat 3dgui2.dat

The script takes as input a data file of the form:

Code: Select all

backgroundimage ; scale
image ; scale ; text ; action
*n

Example file with 3 items:
img\dos_shade4.pcx ; 45
emma.txt ; 9      ;Emma;      echo Emma
fract.txt ; 9     ;Fractal;   echo Fractal
glass.txt ; 9     ;Glass;     echo Glass