AutoGUI 2.5

Old Topics related to the original "AutoGUI" ahk script editor.
hasantr
Posts: 933
Joined: 05 Apr 2016, 14:18
Location: İstanbul

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: 1640
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: 933
Joined: 05 Apr 2016, 14:18
Location: İstanbul

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: 428
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: 1640
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: 428
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

Static XPMLoaded := 0, PixmapBreakpoint, PixmapBookmark ;, PixmapError
User avatar
kczx3
Posts: 1640
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: 428
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

ToggleComment() {
    n := TabEx.GetSel()
    Pos := Sci[n].GetCurrentPos()

    SelStart := Sci[n].GetSelectionStart()
    SelEnd := Sci[n].GetSelectionEnd()
    LineStartPos := Sci[n].PositionFromLine(Sci[n].LineFromPosition(SelStart))
    If (SelStart == SelEnd) {
        SelEnd := Sci[n].GetLineEndPosition(Sci[n].LineFromPosition(SelEnd))
    }

    Sci[n].SetSel(LineStartPos, SelEnd)
    SelText := GetSelectedText()

    Lines := ""
    Count := 0
    Loop Parse, SelText, `n, `r
    {
        ; Uncomment
        If (RegExMatch(A_LoopField, "^\s*\;")) {
            Lines .= RegExReplace(A_LoopField, "\;", "", "", 1) . CRLF
            Count--

        } Else If (A_LoopField == "") {
            Lines .= CRLF

        ; Comment
        } Else {
            RegExMatch(A_LoopField, "^\s+", Indentation)
            Lines .= Indentation . ";" . StrReplace(A_LoopField, Indentation, "",, 1) . CRLF
            Count++
        }
    }

    Lines := RegExReplace(Lines, "`r`n$", "", "", 1)
    SetSelectedText(Lines)
    Sci[n].GoToPos(Pos + Count)
}
User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.5

04 Sep 2018, 07:13

Works great, thanks!
User avatar
Alguimist
Posts: 428
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: 565
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: 428
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: 565
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: 1426
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: 77
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: 1640
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: 428
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

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

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

Re: AutoGUI 2.5

28 Sep 2018, 03:17

Version 2.5.3:
• New options in the Find/Replace dialog: "Wrap around" (cyclic search) and "Origin": current position or starting position. Current position is ignored by "Mark All", but not by "Replace All".
• Fixed: "Mark/Replace All" with a zero-length match regular expression could enter an infinite loop.
• A_Variables: added a category for built-in variables only available in AutoHotkey_H.

Highly improved Scripts Manager:
• The list of scripts is now updated more efficiently using the Lexicos method mentioned in this topic. Before that, the sum of the PIDs were being compared in a timer to determine if the entire list should be reloaded.
• Explorer context menu: right-click an item in the list to have access to all options associated with AHK files.
• CPU usage is displayed in the status bar (as well as starting time, memory usage (working size and virtual size) and image type of the AHK executable (32 or 64-bit).
• Settings are saved on exit: window position/size, columns size, etc.
• New options: Always on Top, Hide When Minimized (minimize to tray), Confirm Reload/Exit (message box) and TrayTip Notifications.
• If enabled, the "TrayTip Notifications" option displays a balloon with information about the script/process when a script is started or terminated.
• Integration with Find in Files: a string can be searched in one or more (or all running) scripts.
• Open Command Prompt in the folder of the selected script.
• Set default editor for AHK scripts (AutoGUI proposed).

8-) Download

Return to “Old Topics”

Who is online

Users browsing this forum: No registered users and 3 guests