Graphic interface in Batch ? Is it possible ?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
bufoss
Posts: 8
Joined: 22 Nov 2016 13:46

Graphic interface in Batch ? Is it possible ?

#1 Post by bufoss » 11 Dec 2016 04:47

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
Attachments
image.png
image.png (7.43 KiB) Viewed 5515 times

ShadowThief
Expert
Posts: 1160
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Graphic interface in Batch ? Is it possible ?

#2 Post by ShadowThief » 11 Dec 2016 04:50

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

Aspidiske
Posts: 7
Joined: 30 Oct 2016 09:48

Re: Graphic interface in Batch ? Is it possible ?

#3 Post by Aspidiske » 07 Jan 2017 14:32

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

misol101
Posts: 475
Joined: 02 May 2016 18:20

Re: Graphic interface in Batch ? Is it possible ?

#4 Post by misol101 » 10 Jan 2017 06:27

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

Post Reply