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

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by brutus_skywalker » 12 Jun 2018, 04:20

GeekDude wrote:]
Multiple instances shouldn't conflict with each other in any way, and that note about memory usage sound completely fine.

I'm stumped as to what could have been causing your issue. Can I blame the antivirus? :lol:


I don't think so,I use Microsoft Security Essentials,pretty solid AV,plays well with everything.

And I've now been running it with v1.1.26.01(x32 Unicode) and no issues. Needless to say I no longer believe it's the script, I think it's something to do the combination of the 1.1.29.01(x32 Unicode) update and my OS(Win 7 x64 ultimate SP1).

I'm gonna hold off on a bug report to lexikos though, given I seem to be the only one whose observed and noted this issue on the forum. Cheers & Thanks for looking into it.

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by GeekDude » 11 Jun 2018, 18:56

brutus_skywalker wrote:Somewhat, memory doubles when the open/save dialog is active(receding only when inactive) & there's a similar CPU spike, but fairly consistent RAM usage relative to open size of open script. I'm thinking possibly the problem was that i had too many windows open, though i can't see how it's the cause. But i must re-iterate this issue,was the result of extended use across numerous windows, which makes me suspect script process might somehow have gotten paged or something.


Multiple instances shouldn't conflict with each other in any way, and that note about memory usage sound completely fine.

I'm stumped as to what could have been causing your issue. Can I blame the antivirus? :lol:

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by brutus_skywalker » 08 Jun 2018, 19:44

GeekDude wrote:I'm having trouble reproducing the issue. Do you have any idea what might have been causing it? Was it using much more RAM than it typically does?


Somewhat, memory doubles when the open/save dialog is active(receding only when inactive) & there's a similar CPU spike, but fairly consistent RAM usage relative to open size of open script. I'm thinking possibly the problem was that i had too many windows open, though i can't see how it's the cause. But i must re-iterate this issue,was the result of extended use across numerous windows, which makes me suspect script process might somehow have gotten paged or something.

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by GeekDude » 08 Jun 2018, 09:09

brutus_skywalker wrote:Hi i dunno if it a can be called a bug, but i was using it for like 8hours straight last night and it seemed the longer i used it the wonkier the auto-completion, and the slower it got overall, i had like 6separate (CodeQuickTester)windows open, and the largest script i had open was no more than a thousand lines. And by wonky i mean there seemed to be somewhat of a lag and often i had to backspace to get auto-completion & highlighting activated.

I'm having trouble reproducing the issue. Do you have any idea what might have been causing it? Was it using much more RAM than it typically does?

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by brutus_skywalker » 07 Jun 2018, 09:52

Hi i dunno if it a can be called a bug, but i was using it for like 8hours straight last night and it seemed the longer i used it the wonkier the auto-completion, and the slower it got overall, i had like 6separate (CodeQuickTester)windows open, and the largest script i had open was no more than a thousand lines. And by wonky i mean there seemed to be somewhat of a lag and often i had to backspace to get auto-completion & highlighting activated.

The only modification i made to the script is to the font size of the status bar: Around Line900

Code: [Select all]GeSHi © Codebox Plus

		; Add status bar
Gui, font, s14, Courier New Bold
Gui, Add, StatusBar
SB_SetParts(100, 110, 90, 110, 100)
this.UpdateStatusBar()

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by StefOnSteroids » 05 Jun 2018, 07:11


Thanks for the direct link. Next time I will more thoroughly peruse available resources. :oops:

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by brutus_skywalker » 04 Jun 2018, 10:43

StefOnSteroids wrote:Great idea to allow a settings file - so users can keep their custom font sizes, colors etc from version to version.
Would you please provide a sample settings.ini or give a few guidelines what the ini-file must look like?


It's in the OP.

https://github.com/G33kDude/CodeQuickTester/blob/master/Settings.ini

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by StefOnSteroids » 04 Jun 2018, 07:32

GeekDude wrote:There are instructions and a template in the original post if this thread, under the additional setup header.

My bad, I went straight to the Github page to get the new version, without noticing the ini-template.
Many thanks. The settings-file makes things so much easier. :thumbup:

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by GeekDude » 04 Jun 2018, 07:09

StefOnSteroids wrote:Great idea to allow a settings file - so users can keep their custom font sizes, colors etc from version to version.
Would you please provide a sample settings.ini or give a few guidelines what the ini-file must look like?


There are instructions and a template in the original post if this thread, under the additional setup header.

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Post by StefOnSteroids » 04 Jun 2018, 04:21

Great idea to allow a settings file - so users can keep their custom font sizes, colors etc from version to version.
Would you please provide a sample settings.ini or give a few guidelines what the ini-file must look like?

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by GeekDude » 02 Jun 2018, 21:54

CodeQuickTester v2.7 has been released

Please see the original post for a link to the release and revision history pages.



Changes

  • Improved script options menu file selector default folders/files
  • Fixed help file integration when only IE8 is available
  • Various improvements to Wine compatibility
  • Reorganized the menu bar
  • Made the default pastebin dialog values more generic

Additions

  • Dynamic keyword autocompletion
  • Menu for inserting includes
  • Menu button/hotkey for exiting (Ctrl+W)
  • Menu button to open the working directory
  • Support for an external Settings.ini file
  • Support for compiling into a portable exe via AutoHotkey_H


The original post has been updated

It now includes a lot of information about steps you can optionally take to integrate CodeQuickTester into your system. Please go back and re-read it!

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by brutus_skywalker » 19 May 2018, 08:28

GeekDude wrote:What do you think about allowing keywords containing numbers as long as the keyword does not start with the number? Right now the rule is alpha characters and underscore only.



I think that should cover an absolute majority of use cases. I've never seen code where a function/var name starts with an integer.



Edit:
On another note, Just realized that command usage is shown on the status bar for command on caret position,never looked there before despite using for ages...till now... I think you might consider using a different font face and/or making it bold+italic or even a different color to make it standout,that's at least how i modified it for my use. All aside sweet usage of the status bar,lest we miss it.

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by GeekDude » 18 May 2018, 19:39

brutus_skywalker wrote:One more thing i noticed,if a string contains a integer it's split into multiple strings instead of being one,i.e Unicode2Ascii is only autocompleted as 'Unicode' and 'Ascii' not as one string, i understand the reasons for this, especially symbols but i think exceptions should be made for integers & certain symbols such as '_' which are often used to define variables & functions.


What do you think about allowing keywords containing numbers as long as the keyword does not start with the number? Right now the rule is alpha characters and underscore only.

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by brutus_skywalker » 16 May 2018, 13:42

GeekDude wrote:
brutus_skywalker wrote:THAT'S WHAT I WAS SAYIN' :superhappy: , is it going to be an update?


It's not quite ready for prime time, but here's a copy of my current test https://p.ahkscript.org/?p=9937466b

Let me know what you think! I'm sure there's some aspects of it that I haven't considered but as far as functionality goes I think it's almost there.


Objectively speaking, RADDD!. Text completion is basically instantaneous,so it doesn't slow you down & you also included ahk commands in addition to auto-completing text in the editor,which is just icing on the cake. If possible tooltips would be nice for the commands,i imagine it's easy enough given rajat's intellisense script uses the commands.txt included with ahk.

BTW, notepad++ doesn't even have case corrective auto-completion(i.e case of typed string must match a suggestion) which was a freaking pain,guess i have a new default ahk editor. :salute:

Love it, and thanks for this dude.



EDIT:
One more thing i noticed,if a string contains a integer it's split into multiple strings instead of being one,i.e Unicode2Ascii is only autocompleted as 'Unicode' and 'Ascii' not as one string, i understand the reasons for this, especially symbols but i think exceptions should be made for integers & certain symbols such as '_' which are often used to define variables & functions.

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by GeekDude » 15 May 2018, 09:32

brutus_skywalker wrote:THAT'S WHAT I WAS SAYIN' :superhappy: , is it going to be an update?


It's not quite ready for prime time, but here's a copy of my current test https://p.ahkscript.org/?p=9937466b

Let me know what you think! I'm sure there's some aspects of it that I haven't considered but as far as functionality goes I think it's almost there.

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by brutus_skywalker » 14 May 2018, 00:03

GeekDude wrote:Unfortunately that function cannot be applied to what is being done with CodeQuickTester. It appears to be more for navigation bars or search menus.


It actually works on edit controls as well,here:

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





GeekDude wrote:Check THIS out ;)
Image


THAT'S WHAT I WAS SAYIN' :superhappy: , is it going to be an update?

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by GeekDude » 13 May 2018, 08:39

StefOnSteroids wrote:Thanks again. I really appreciate it. :thumbup:

Glad I could help! :)

brutus_skywalker wrote:If i may make a suggestion that would make it tons better. Could you consider adding np++ like functionality where all text in current window is used as a wordlist to autocomplete text, this function i reckon should make it a breeze to implement.... https://autohotkey.com/board/topic/96129-ahk-l-custom-autocompletion-for-edit-control-with-drop-down-list.

Unfortunately that function cannot be applied to what is being done with CodeQuickTester. It appears to be more for navigation bars or search menus.

brutus_skywalker wrote:On the subject of my suggestion above(which i opted out of editing), check THIS out, it basically does what i asked for above,just across multiple editors.

Check THIS out ;)

Image

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by brutus_skywalker » 13 May 2018, 04:22

On the subject of my suggestion above(which i opted out of editing), check THIS out, it basically does what i asked for above,just across multiple editors.

Here's the code 'snippet' is used to retrieve the alphabetically ranked word-list from the active editor, just thought it would save you sometime if you chose to do it...



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

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by brutus_skywalker » 10 May 2018, 23:33

If i may make a suggestion that would make it tons better. Could you consider adding np++ like functionality where all text in current window is used as a wordlist to autocomplete text, this function i reckon should make it a breeze to implement.... https://autohotkey.com/board/topic/96129-ahk-l-custom-autocompletion-for-edit-control-with-drop-down-list.

Great tool regardless...

Re: [Script] CodeQuickTester - Write and run code without touching the file system

Post by StefOnSteroids » 10 May 2018, 13:02

Sorry for the ambiguity. Based on your hint with
"AhkPath": A_ScriptDir "\AutoHotkeyU64.exe"
I expected something involving A_ScriptDir and a bunch of \..\.. the way I am used to from other programs. So I went ahead and read out A_ScriptDir and the MsgBox specified it without the exe, only the path component alone.

Meanwhile I had been tinkering with
SplitPath, A_ScriptDir,,,,,DriveLetter (after some extensive reading in the help file) but then failed again when constructing the whole enchilada for "AhkPath": ...

So anyway, I am really glad your reply came in and put an end to my agonizing.
Your function is WAY over my head :oops: , but it works perfectly fine. There is no way I would have ever figured out how to make it portable.
Thanks again. I really appreciate it. :thumbup:

Top