What is the easiest way to make a button?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
uglyninja
Posts: 7
Joined: 18 May 2018 14:22

What is the easiest way to make a button?

#1 Post by uglyninja » 18 May 2018 14:27

What is the easiest way to make a button?

I stumbled across many ways to make a button in .bat files, but I'm not professional so i don't understand many of them.
So, is there a very easy way to make a button?
I want to make a button in the center of the screen with the text "Click Me".
If batbox.exe is the only easy way, can someone tell me the code to make that button and how do i know if the user clicked it?

Thanks for all help.

- uglyninja

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: What is the easiest way to make a button?

#2 Post by Squashman » 18 May 2018 16:46

Pretty sure you can't do any of that with a pure batch file. Might be able to do a hybrid with jscript or vbscript.

Aacini
Expert
Posts: 1913
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: What is the easiest way to make a button?

#3 Post by Aacini » 18 May 2018 18:16

... or with HTA, like in this topic...

Antonio

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: What is the easiest way to make a button?

#4 Post by penpen » 19 May 2018 13:53

If using executables is an optin, then misol101 has done some remarkable progress on this:
viewtopic.php?f=3&t=8484

penpen

JMan
Posts: 5
Joined: 18 May 2018 08:26

Re: What is the easiest way to make a button?

#5 Post by JMan » 21 May 2018 04:05

There is now way to do that in Command Prompt.

Maybe you can try python scripting.
just use tkinter.

python: https://www.python.org/

more info about tkinter: https://wiki.python.org/moin/TkInter

Post Reply