AutoGUI 2.0

Discuss the AutoGUI IDE with a GUI designer and a script editor.
User avatar
Alguimist
Posts: 151
Joined: 05 Oct 2015, 16:41

AutoGUI 2.0

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
User avatar
joedf
Posts: 6015
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: AutoGUI 2.0

20 Nov 2017, 22:17

Nice! including the DBGp :+1:
guest3456
Posts: 2080
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: 423
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: 151
Joined: 05 Oct 2015, 16:41

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: 80
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: 151
Joined: 05 Oct 2015, 16:41

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: 423
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 13 times
User avatar
Alguimist
Posts: 151
Joined: 05 Oct 2015, 16:41

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 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.
User avatar
Alguimist
Posts: 151
Joined: 05 Oct 2015, 16:41

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
Another 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".
User avatar
Alguimist
Posts: 151
Joined: 05 Oct 2015, 16:41

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: 151
Joined: 05 Oct 2015, 16:41

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: 6015
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
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
User avatar
Alguimist
Posts: 151
Joined: 05 Oct 2015, 16:41

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 deals 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.
User avatar
joedf
Posts: 6015
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
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
User avatar
Drugwash
Posts: 309
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. :)

Return to “AutoGUI”

Who is online

Users browsing this forum: No registered users and 1 guest