CodeQuickTester - Write and run code without touching the file system

Post your working scripts, libraries and tools
GeekDude
Posts: 738
Joined: 02 Oct 2013, 22:13

Re: CodeQuickTester

31 May 2015, 13:34

Whoops, looks like I broke the gist open button from the extension, fixed now. @BGM Check the original post, the greasemonkey script is in a spoiler tag about 2/3 the way down.

I've just updated the code tester as well.

  • Moved config to top of script
  • Added default file option to config (Defaults to ShellNew)
  • Made selected text length more responsive
  • Changed pastebin dropdown to combobox
  • Updated to new pastebin URL
  • Added A_AhkDir to the hashbang decoder
GeekDude
Posts: 738
Joined: 02 Oct 2013, 22:13

Re: CodeQuickTester

01 Jun 2015, 22:55

I'm going to go ahead and push this out. Introducing Auto Indent, modified from @maestrith's amazing AHK Studio!

  • Added menu button for Auto Indent
User avatar
BGM
Posts: 366
Joined: 20 Nov 2013, 20:56
GitHub: bgmCoder
Contact:

Re: CodeQuickTester

02 Jun 2015, 09:59

You should add triple-click to select an entire line
User avatar
maestrith
Posts: 667
Joined: 16 Oct 2013, 13:52

Re: CodeQuickTester

02 Jun 2015, 10:01

aww :) you called Studio amazing :)
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
GeekDude
Posts: 738
Joined: 02 Oct 2013, 22:13

Re: CodeQuickTester

04 Jun 2015, 18:17

I just updated the code tester! This update brings the use of a RichEdit control. Also, I've added a hotkey for opening the help file. Kudos to @just_me for his help with the RE, and his wonderful RE class I used as a guide. Also thanks to @BGM for his feedback in the IRC.

  • Switched to using a RichEdit control
  • Triple click selects whole line
  • Added options for variable tab width, font, typeface, font color, bgcolor etc.
  • ^h to open help file
GeekDude
Posts: 738
Joined: 02 Oct 2013, 22:13

Re: CodeQuickTester

10 Aug 2015, 16:56

What do you guys think about switching to a more OOP code base? Here's an unfinished example

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

dd900
Posts: 71
Joined: 27 Oct 2013, 16:03

Re: CodeQuickTester

10 Aug 2015, 23:46

Looks good. I just tested this with CodeQuickTester then I used the new instance to load another instance of CodeQuickTester.

CodeQuickTesterCeption
User avatar
joedf
Posts: 5745
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: CodeQuickTester

11 Aug 2015, 10:43

dd900 wrote:Looks good. I just tested this with CodeQuickTester then I used the new instance to load another instance of CodeQuickTester.

CodeQuickTesterCeption


:D
dd900
Posts: 71
Joined: 27 Oct 2013, 16:03

Re: CodeQuickTester

11 Aug 2015, 11:22

GeekDude wrote:What effect do you think this new approach has on code readability?

I think that would depend on the user. I myself find it easier to read the newer version, but that's only because I am familiar with how classes work in ahk (thank you lexikos). Someone with no experience using objects or classes in ahk or any other language might not understand what is going on in the code.

I say continue with the new OOP aproach
GeekDude
Posts: 738
Joined: 02 Oct 2013, 22:13

Re: CodeQuickTester

11 Aug 2015, 11:45

A fun side effect is that you can create multiple instances of the code editor from one script. That could make it easier for me to add a "open new instance" button that works while the script is being run dynamically.
User avatar
joedf
Posts: 5745
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: CodeQuickTester

11 Aug 2015, 12:51

+1
GeekDude
Posts: 738
Joined: 02 Oct 2013, 22:13

Re: CodeQuickTester

17 Aug 2015, 11:18

Run this, and click the run button a few times. Works fine, right? Click the edit box, then click the run button a few more times. It gets stuck on "Kill". Now kill the script, and uncomment the two lines in the UpdateStatusBar method, and try again. Everything works fine. My question is why does that fix a seemingly unrelated problem? I'm baffled.


Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
cyruz
Posts: 243
Joined: 30 Sep 2013, 13:31

Re: CodeQuickTester

01 Sep 2015, 04:12

Nice, the app deserves a dedicated repo :D
ABCza on the old forum.
My GitHub.
User avatar
TLM
Posts: 1117
Joined: 01 Oct 2013, 07:52

Re: CodeQuickTester

10 Sep 2015, 13:20

FR: 1 click code commenting plz :D
Image
User avatar
maestrith
Posts: 667
Joined: 16 Oct 2013, 13:52

Re: CodeQuickTester

04 Aug 2017, 10:35

Scintilla or RichEdit?
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 17 guests