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.) 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?) :
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.
Regards,
burque505
GuiCmd.ahk
GuiCmd.ahk
- Attachments
-
- guicmd.gif (54.78 KiB) Viewed 1301 times
Re: GuiCmd.ahk
GuiCmd.ahk ... "COVID-19 version - ALPHA - May 12, 2020"
Thx for sharing it
Thx for sharing it
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
Re: GuiCmd.ahk
I do find it useful, maybe not today, but it sure is something great to see!
Re: GuiCmd.ahk
@BNOLI, @elModo7, thank you!
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 253 guests