AutoGUI 2.5

Script editor, GUI designer, debugger and tools for AutoHotkey
hasantr
Posts: 86
Joined: 05 Apr 2016, 14:18

Re: AutoGUI 2.0

05 Jun 2018, 05:39

---------------------------
AutoGUI.ahk
---------------------------
Error in #include file "D:\_AppData_\Desktop\AHK İLE İLGİLİ\AutoGUI\Include\Properties.ahk":
Parameter #2 invalid.

Specifically: Tab3

Line#
008: {
009: ClassNNList .= g[Item].ClassNN . "|"
010: }
012: Gui,Add,Picture,gBlinkBorder x12 y13 w16 h16 Icon5,IconLib
013: Gui,Add,DropDownList,hWndhCbxClassNN vCbxClassNN gOnDropDownChange x40 y12 w203,"Window||" . ClassNNList
014: Gui,Add,Button,hWndhReloadBtn gReloadSub x248 y11 w23 h23
015: GuiButtonIcon(hReloadBtn, IconLib, 90, "L1 T1")
---> 017: Gui,Add,Tab3,hWndhPropTab vCurrentTab x6 y41 w270 h303 AltSubmit %g_ThemeFix%,General|Options|Window|Events|Script

The program will exit.
---------------------------
Okey
---------------------------


I get such an error. Exe does not make a mistake in compiling.
User avatar
kczx3
Posts: 615
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.0

05 Jun 2018, 06:13

Seems like you need to upgrade your version of AHK
hasantr
Posts: 86
Joined: 05 Apr 2016, 14:18

Re: AutoGUI 2.0

06 Jun 2018, 08:13

kczx3 wrote:Seems like you need to upgrade your version of AHK


Thank you. After the update, the problem is solved.
User avatar
Alguimist
Posts: 290
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

30 Aug 2018, 16:33

Version 2.5.0 (this is an important AutoGUI update):
• Redesigned Properties window (GUI designer). Press F10 to see it.
• New: Script Directives. This script is able to generate the code for almost all directives and commands that can be found in the preamble of scripts. Run it from AutoGUI (File > Script Directives) to prepend the code it generates to the current document.
• New: list of AutoGUI keyboard shortcuts (Help > Keyboard Shortcuts).
• Changed: the code generated by the GUI designer is now read-only. When an attempt is made to modify it, a dialog pops up offering the options: "Disconnect the GUI Designer" and "Duplicate Tab Contents".
• Fixed: auto-save doesn't crash AutoGUI anymore.
• A considerable number of bug fixes and improvements.

:arrow: Download
User avatar
kczx3
Posts: 615
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.5

31 Aug 2018, 10:08

Thanks for the updates Alguimist!

One thing that has always bothered me a bit is how the toggle comment functionality works when your selection contains multiple lines. See the below gif. I would propose that when multiple lines are in the selection and you use the toggle comment feature that it place the comment characters at the beginning of each line.

AutoGUI toggle comment multipel lines.gif
(72.41 KiB) Not downloaded yet
User avatar
Alguimist
Posts: 290
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

31 Aug 2018, 18:18

There is a side effect. What if I want to comment out only the final portion of the line (even though it makes no sense to select a portion of the line and press Ctrl+K instead of simply adding the semicolon)?

One line from Editor.ahk:

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

Static XPMLoaded := 0, PixmapBreakpoint, PixmapBookmark ;, PixmapError
User avatar
kczx3
Posts: 615
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.5

31 Aug 2018, 18:57

If you want to do that, then just place your cursor and type a semicolon. A toggle comment functionality is specifically for toggling LINE comments. As in, the entire line.
User avatar
Alguimist
Posts: 290
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

01 Sep 2018, 01:21

OK. Replace ToggleComment in Editor.ahk with this:

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

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

Re: AutoGUI 2.5

04 Sep 2018, 07:13

Works great, thanks!
User avatar
Alguimist
Posts: 290
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

04 Sep 2018, 22:58

Version 2.5.1 (some minor bugs that should have been fixed already):
• Fixed line visibility when using Find next/previous, go to line, go to next/previous mark, debug step (the line is centralized in the previous version). Also ensure that lines hidden in contracted folds become visible.
• Fixed: when word wrap is disabled, the horizontal scroll bar was not being automatically adjusted.
• Assigned the keys Shift+End and Shift+Home for wrapped lines.
• Improved rectangular selection (Alt+Shift+arrow keys).
• Open file dialog starts in the folder of the active document, not the folder of the last opened file.

:arrow: Download
DRocks
Posts: 90
Joined: 08 May 2018, 10:20

Re: AutoGUI 2.5

07 Sep 2018, 01:17

hello Alguimist

Thank you for the updates! I have been desperatly hoping for an Undo function that would act on your latest changes upon the GUI preview. Some times I hit delete with a group of box selected by error and I cant go back! its really painful lol

let me know what you think please

Alex
User avatar
Alguimist
Posts: 290
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

07 Sep 2018, 03:32

Hello, DRocks. GUI undo/redo is already in sight, but I have to do some work first.
DRocks
Posts: 90
Joined: 08 May 2018, 10:20

Re: AutoGUI 2.5

07 Sep 2018, 18:42

thank you so much man it would be awesome! :)
SOTE
Posts: 106
Joined: 15 Jun 2015, 06:21

Re: AutoGUI 2.5

08 Sep 2018, 03:25

DRocks wrote:hello Alguimist

Thank you for the updates! I have been desperatly hoping for an Undo function that would act on your latest changes upon the GUI preview. Some times I hit delete with a group of box selected by error and I cant go back! its really painful lol

let me know what you think please

Alex


Also agree with this request.
StefOnSteroids
Posts: 40
Joined: 08 Aug 2015, 10:22

Re: AutoGUI 2.5

09 Sep 2018, 06:46

Yes, Undo would be great to have. I also second this wish.
Many thanks to Alguimnist for the update. :bravo:
User avatar
kczx3
Posts: 615
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.5

10 Sep 2018, 10:46

Is it possible to make the debugger break on an exception instead of having to define a breakpoint?
User avatar
Alguimist
Posts: 290
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

11 Sep 2018, 04:32

kczx3 wrote:Is it possible to make the debugger break on an exception instead of having to define a breakpoint?

The debugger redirects standard errors (stderr) to the "Standard Error View" window (Debug > Error Stream). It will soon be made optional.

Meanwhile you can use OnError (introduced in AHK 1.1.29). Example:

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

OnError("ErrorHandler")

a := %a%
Return

ErrorHandler(Exception) {
MsgBox 0x10, Error, % "Error on line " Exception.Line ": " Exception.Message
Return True
}

Is that what you asked?

Debugger.cpp:

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

case 'm': // function
case 'x': // exception
case 'h': // hit_value
case 'o': // hit_condition = >= | == | %
case '-': // expression for conditional breakpoints
// These aren't used/supported, but ignored for now.
break;
User avatar
kczx3
Posts: 615
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.5

11 Sep 2018, 06:25

Seems like what I was looking for is the X case in debugger.cop
User avatar
Alguimist
Posts: 290
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

13 Sep 2018, 15:51

Version 2.5.2:
• Fixed: multiple filenames can be passed in the command line to an existing instance of AutoGUI from the Explorer context menu (because it invokes a new instance of AutoGUI for every selected file), but on Total Commander all files are passed in a single call.
• Updated MagicBox (v1.0.4).
• Updated AHK help file (classic style sidebar).

:arrow: Download

Return to “AutoGUI”

Who is online

Users browsing this forum: No registered users and 1 guest