[Editor] CodeQuickTester - Write and run code without saving to a temporary file

Post your working scripts, libraries and tools for AHK v1.1 and older
geek
Posts: 1051
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

[Editor] CodeQuickTester - Write and run code without saving to a temporary file

26 Jan 2015, 11:37

CodeQuickTester

CodeQuickTester is a portable single-file script editor that allows you to write code, and then run it without having to save to a temporary file.

It supports many powerful features and is tightly integrated with the AutoHotkey language and community.

To learn more about what it does, look in the features section of this document.

Image
Old Image | Older Image | Example script output


Features
  • Requires no external dependencies and is completely self contained (one file!)
  • Allows you to run code you've written without saving to a temporary file¹
  • Uses a pure-AHK code editing control that supports custom syntax highlighting
  • Integrates with the help file to provide always up-to-date syntax tips²
  • Provides suggestions for automatic keyword completion using built in keywords and ones pulled from your script
  • Includes tools to help you format your code, such as an automatic re-indentation tool
  • Can have multiple instances of it be run at the same time
  • Integrates with the forum and live chat³
  • Can open existing scripts from a file, from a link, or by drag and drop
  • Can quickly switch between AutoHotkey versions from a simple menu
[list=1][*]Current versions of Wine for Linux do not support this feature [*]If running in a portable environment, make sure AutoHotkey.chm is in the same directory as CodeQuickTester [*]Requires some additional setup [/list]


Supported Platforms
  • AutoHotkey v1.1 or the equivalent AutoHotkey_H
  • Known to work with Windows 7 and above
  • Help file integration requires Internet Explorer 8 or above

Additional Setup (Optional)

Set as the default script editor
Spoiler
Set up forum integration
Spoiler
Create a separate settings file to save your settings between updates
Spoiler
Compilation instructions
Spoiler

Related Projects

MultiTester.ahk - Create responsive desktop applications using HTML, CSS, JS, and AHK!

RichCode.ahk - A pure-AHK code editing control that supports custom syntax highlighting



Releases

The latest version can always be found on the GitHub release page.

:!: IMPORTANT :!:

Make sure to download using the link labeled CodeQuickTester_vX.Y.ahk or CodeQuickTester_vX.Y.exe.

Downloading from the link Source Code will not include critical libraries required for the script to function.

:!: IMPORTANT :!:
Last edited by geek on 05 Oct 2015, 15:11, edited 7 times in total.
User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: CodeQuickTester

26 Jan 2015, 15:44

Nice you finally posted it!
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: CodeQuickTester

26 Jan 2015, 18:58

But i mean your updated version :)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
geek
Posts: 1051
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: CodeQuickTester

26 Jan 2015, 19:06

Well I'm glad you like it, though! Interesting thing about running scripts dynamically. File loops get $CONIN and $CONOUT as listed in the script's directory.
enthused
Posts: 94
Joined: 27 Dec 2014, 03:28

Re: CodeQuickTester

26 Jan 2015, 23:11

Now this is very nice and very compact too.
Thank you GeekDude
geek
Posts: 1051
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: CodeQuickTester

26 Jan 2015, 23:41

WARNING: It will throw errors if you try to run a script with unicode characters in it. See here.

Edit: Fixed
Last edited by geek on 17 Feb 2015, 14:16, edited 1 time in total.
User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: CodeQuickTester

26 Jan 2015, 23:49

Lol
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
geek
Posts: 1051
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: CodeQuickTester

27 Jan 2015, 15:47

Now works with unicode (in theory). Thanks, Coco!
Coco
Posts: 771
Joined: 29 Sep 2013, 20:37
Contact:

Re: CodeQuickTester

28 Jan 2015, 10:39

Simple wish: perhaps add another edit control to allow passing of command line parameters.
geek
Posts: 1051
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: CodeQuickTester

28 Jan 2015, 10:40

I'll throw in a floating dialog for it.

Edit: Dialog created
User avatar
cyruz
Posts: 345
Joined: 30 Sep 2013, 13:31

Re: CodeQuickTester

28 Jan 2015, 13:59

Very nice! I can finally stop creating tmp.ahk & test.ahk everywhere :D :D
ABCza on the old forum.
My GitHub.
User avatar
boiler
Posts: 16709
Joined: 21 Dec 2014, 02:44

Re: CodeQuickTester

28 Jan 2015, 15:32

^ Yes, now I can out of the habit of littering my desktop with all these little test scripts I write and try from from forum posts. Love this.
geek
Posts: 1051
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: CodeQuickTester

28 Jan 2015, 15:45

Nevermind about my mention of $CONIN and $CONOUT. I'm just an idiot who was using those instead of CONIN$ and CONOUT$, thus causing files to actually be created and my print function to not work.
User avatar
Soft
Posts: 174
Joined: 07 Jan 2015, 13:18
Location: Seoul
Contact:

Re: CodeQuickTester

28 Jan 2015, 23:25

I really like this! good work
AutoHotkey & AutoHotkey_H v1.1.22.07
geek
Posts: 1051
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: CodeQuickTester

29 Jan 2015, 10:33

Thanks for the compliment!
geek
Posts: 1051
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: CodeQuickTester

29 Jan 2015, 11:20

Update: Removed /ErrorStdOut. Interestingly I hadn't noticed the implications of having it in there without actually handling the errors until now.
User avatar
cyruz
Posts: 345
Joined: 30 Sep 2013, 13:31

Re: CodeQuickTester

29 Jan 2015, 11:29

What about an integration with your console class so that the user can redirect the output there?
ABCza on the old forum.
My GitHub.
geek
Posts: 1051
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: CodeQuickTester

29 Jan 2015, 11:33

Because that would ruin the lightweight single-file thing I'm going for. Besides, you don't actually need the console class unless you want to do crazy stuff. Simple console output can be done in two lines:

Code: Select all

DllCall("AttachConsole") ; Top of script
FileOpen("CONOUT$", "w").Write("Some text") ; Wherever you want to print
However, this wouldn't really help much, seeing as there's already a pretty good built-in method of showing the user error messages.
User avatar
boiler
Posts: 16709
Joined: 21 Dec 2014, 02:44

Re: CodeQuickTester

29 Jan 2015, 11:49

What's the script directory? What if an app creates .ini files or something in the script directory. Where do they go? Sorry if you said that already. I couldn't find that mentioned.

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: RussF and 67 guests