GuiCmd.ahk

Post your working scripts, libraries and tools for AHK v1.1 and older
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

GuiCmd.ahk

12 May 2020, 10:06

I'm posting this code I cobbled together a couple of years ago, not because it's great or even finished, but just because there seems to be current interest in a GUI in AHK for cmd.exe. Maybe someone else will improve on it. EDIT: This script assumes CLR.ahk is somewhere you can find it, I think, I have it in my LIB folder in the AutoHotkey program folder. (Or is CLR support built in now? I don't even know.) :oops: RE-EDIT: Up arrow and down arrow work for command history, although not exactly duplicating cmd.exe experience.

Things it doesn't do, but probably will at some point:

1) Use a sane folder select (at the moment it requires an included DLL - see ZIP) - should probably use SelectFolderEx(), I'm looking at it.
2) Allow changing directory from the command line (requires a separate button at the moment)
3) Operate flicker-free
4) Work without reliance on external libs (uses obj2tr.ahk at the moment)

Annoyances I should have fixed by now but haven't (why put off till tomorrow what you can put off till the day after tomorrow?) :D :
a) Flickering.
b) Can't cd from the command line.

A true annoyance I can't do anything about at the moment (I think @HotKeyIt already put in a pull request regarding this):
A) UNICODE OUTPUT does not work well.

Not very well tested at all, beware!

Everything's in the ZIP.
GuiCmd.zip
(7.75 KiB) Downloaded 146 times
Regards,
burque505
Attachments
guicmd.gif
guicmd.gif (54.78 KiB) Viewed 1301 times
BNOLI
Posts: 548
Joined: 23 Mar 2020, 03:55

Re: GuiCmd.ahk

20 May 2020, 01:09

GuiCmd.ahk ... "COVID-19 version - ALPHA - May 12, 2020" :shock: :)
Thx for sharing it :thumbup:
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
User avatar
elModo7
Posts: 217
Joined: 01 Sep 2017, 02:38
Location: Spain
Contact:

Re: GuiCmd.ahk

21 May 2020, 15:40

I do find it useful, maybe not today, but it sure is something great to see!
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: GuiCmd.ahk

21 May 2020, 17:35

@BNOLI, @elModo7, thank you! :D :+1:

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 253 guests