AutoGUI 2.5

Old Topics related to the original "AutoGUI" ahk script editor.
User avatar
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

AutoGUI 2.5

20 Nov 2017, 19:25

Version 2.0a:
- Initial implementation of the debugger (DBGp by Lexicos and Fincs). The execution flow and variables of a script can be examined step by step.
- AutoGUI now starts in Editor Mode by default. The GUI designer is to be regarded as the second nature of AutoGUI.
- The tab bar can be positioned on top or on the bottom, using the standard style or the button style (I prefer tabs as buttons on the bottom).
- Drag'n drop of tabs was reimplemented based on the code of AkelPad.
- Lines can be bookmarked for quick navigation with the F2 key. Jump from one bookmark to another with Ctrl+PgUp/PgDn. Bookmarks are not preserved when the file is re-opened.
- Bookmark, breakpoint and debug step markers for the symbol margin. If a debug session has been started, clicking the symbol margin adds a breakpoint. Otherwise a bookmark is added.
- Rearrangement of menu items. Some items from the Edit menu were moved to the Search menu, some items from the Options menu were moved to the View menu, etc.
- View menu items: "Collapse All Folds" and "Expand All Folds".
- The keyboard shortcut for "Run Selected Text" was changed to Ctrl+F9.
- Edit menu: Move Line Up/Down: Ctrl+Shift+Up/Down.
- Find/Replace dialog: message boxes were replaced by balloons.
- File menu > Save All.
- File menu > Save a Copy As...
- Options menu: "Ask to Save on Exit". Prompt to save files when AutoGUI is closed.
- Fixed and improved context help.

:arrow: Download
Last edited by Alguimist on 30 Aug 2018, 18:24, edited 1 time in total.
User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: AutoGUI 2.0

20 Nov 2017, 22:17

Nice! including the DBGp :+1:
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]
guest3456
Posts: 3453
Joined: 09 Oct 2013, 10:31

Re: AutoGUI 2.0

21 Nov 2017, 10:24

this is definitely one of the most thorough projects on here. keep up the good work

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.0

22 Nov 2017, 20:25

Is there anything special needed to get the debugger to work? I just get an error that it couldn’t connect to an active debugger.
User avatar
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.0

24 Nov 2017, 23:42

kczx3 wrote:Is there anything special needed to get the debugger to work? I just get an error that it couldn’t connect to an active debugger.
Try changing the debugger port in the ini file. AutoGUI uses port 9001 by default.
xuezhe
Posts: 91
Joined: 06 Jan 2016, 11:02

Re: AutoGUI 2.0

26 Nov 2017, 10:31

great job. Could you update it for AHK_L v2.
User avatar
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.0

28 Nov 2017, 21:17

xuezhe wrote:great job. Could you update it for AHK_L v2.
You can configure a path by pressing Alt+F9 to run an alternative version of AHK, such as AHK v2 or AHK H. Then, on every subsequent use of Alt+F9, that version runs the current script, but the Scintilla lexer may not be appropriate for v2.

Converting the entire code to v2 may take a long time and I'm not yet familiarized with the differences. It should be noted that AHK v2 is still in alpha stage. Syntax is subject to change. AutoGUI is also alpha but for another reason: the AHK lexer must be rewritten, among other things.
User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.0

29 Nov 2017, 09:06

I have attempted at customizing Editor.ahk to have a dark monokai theme. I have most of the colors figured out. Some of the styles though I can't seem to figure out what exactly they mean. Nor have I been able to find a style for altering the appearance of operators. But for some reason, the code for getting the currently selected text doesn't always work. Often times, I will select a word and it interprets the selected text as "5". So all 5's in the document also get highlighted as matching text. Can you see anything different in the attached version that would cause this? I also made some changes to the brace matching code so that it would highlight unmatched braces. Though I don't think that works all the time either.

EDIT: A few things I've determined so far. I needed to call SetCaretFore before the SetCareLine* methods. My BraceMatching code was also breaking stuff. I'd like to see the indicators used instead of just changing the color and font weight of the braces. Additionally, I wanted to set the SCE_AHKL_BUILTINVAR style to be italic but that also breaks the highlighting of matching text. Not sure why.
Attachments
Editor.ahk
(44.28 KiB) Downloaded 423 times
User avatar
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.0

29 Nov 2017, 13:01

kczx3 wrote:Often times, I will select a word and it interprets the selected text as "5". So all 5's in the document also get highlighted as matching text.
In the past, this issue affected all Scintilla messages where wParam lParam should be interpreted as a string. There might be some exception somewhere that was not fixed. Could you provide a test file where the mentioned problems occur? HighlightIdenticalText seems to be working fine, the only limitation is that spaces cannot be in the selection.

At some point I will revise and rewrite the lexer to fix some bugs and maybe include a category for operators. The theme you made looks good. I also have plans to design a custom theme dialog.
Last edited by Alguimist on 24 Apr 2018, 18:53, edited 1 time in total.
User avatar
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.0

02 Dec 2017, 12:29

Version 2.0.1:
- Fixed: the tab bar was not being resized to full length when switching from Design Mode.
- Fixed: collapsed folds were not being expanded when hiding the fold margin.
- Added a button to toggle the fold margin to the editor toolbar.
- In case of an error message saying that the debugger failed to connect, go to Options > Debug Settings and change the port.

:arrow: Download

Image
A screenshot showing AutoGUI debugging itself.

Image
Screenshot of the list of variables.

Notice that A_LastError is injected in the script and double-clicking on it in the list of variables shows the system message. In the example above, a double-click in A_LastError shows the message "Access is denied".

Edit: postimg.org changed domain to postimg.cc.
Last edited by Alguimist on 30 Aug 2018, 18:06, edited 1 time in total.
User avatar
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.0

06 Dec 2017, 15:09

Version 2.0.5:
- The debugger can now be attached to a running script. Go to Run > Attach Debugger.
User avatar
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.0

10 Dec 2017, 16:59

Version 2.0.6:
- New option: Remember Session. A file called "Session Saved on Exit.session" is saved when AutoGUI is closed containing the names of the files currently opened. The files will be automatically re-opened the next time AutoGUI is launched. This option can be enabled in the Options menu.
- A file cannot be opened if it is already opened in another tab.
- Bug fixes and improvements in Autoclose Brackets.

:arrow: Download
User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: AutoGUI 2.0

10 Dec 2017, 19:09

Only getting better :+1:
You should definitely make an installer version and add file association. :D
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
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.0

11 Dec 2017, 11:49

:D Thanks, Joe. I have been planning to create an installer for some time (using NSIS), which could also deal with the file association. Meanwhile, the "installation" of AutoGUI is done manually: save the file in the scripts folder, right click to decompress the files and confirm the overwrite of a previous version, if needed.
Last edited by Alguimist on 30 Aug 2018, 18:07, edited 1 time in total.
User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: AutoGUI 2.0

11 Dec 2017, 12:25

Cool! I have my ASPDM one that can be used as a template. Looking forward to that :+1:
https://github.com/ahkscript/ASPDM/blob ... nstall.nsi
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
Drugwash
Posts: 850
Joined: 29 May 2014, 21:07
Location: Ploieşti, Romania
Contact:

Re: AutoGUI 2.0

11 Dec 2017, 12:41

I like portable things. Go figure. :)
Part of my AHK work can be found here.
User avatar
Tomer
Posts: 366
Joined: 21 Aug 2016, 05:11

Re: AutoGUI 2.0

17 Dec 2017, 13:25

You really need to start considering making this tool official AHK.

Thanks for sharing!
User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: AutoGUI 2.0

17 Dec 2017, 13:27

Yes, that's why I suggested the installer. That will help "officialize" things, but still always keep a portable version available. I see use for both.
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
Tomer
Posts: 366
Joined: 21 Aug 2016, 05:11

Re: AutoGUI 2.0

17 Dec 2017, 13:55

i agreed you should consider installer version if you want to make it officel someday.

1 requment please: add a IntelliSense suggestions automatically while typing (also by pressing ctrl + space) like in VS and SciTE4AutoHotkey
User avatar
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.0

19 Dec 2017, 14:29

Tomer wrote:Add a IntelliSense suggestions automatically while typing (also by pressing ctrl + space) like in VS and SciTE4AutoHotkey
Autocompletion is turned off by default because it is not context-aware: all keywords are available are any context. Ctrl+Space shows the calltip and Ctrl+Enter invokes the autocompletion list (with a minimum of 3 characters typed). If you want the autocompletion list to pop-up while typing, go to Options > Code Completion. Pressing Ctrl+Insert while the list is visible or when the caret is in the keyword also inserts the parameters of the command/function.

Return to “Old Topics”

Who is online

Users browsing this forum: No registered users and 3 guests