AutoGUI 2.5

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: AutoGUI 2.5

Re: AutoGUI 2.5

by Maasq » Yesterday, 11:44

Alguimist, is there any way to change the size of the icons used on the GUI-generated toolbar code? It looks like it always uses the size 16 icon.

Maasq

Re: AutoGUI 2.5

by joedf » 10 Oct 2018, 21:59

ooouuuuuu nice! :+1:

Re: AutoGUI 2.5

by DRocks » 10 Oct 2018, 07:08

Nice !! Thank you sir good job

Re: AutoGUI 2.5

by Alguimist » 09 Oct 2018, 14:49

Version 2.5.4:
• New: AHK-WinAPI table (AutoGUI\Help\AHK-WinAPI.htm). This table provides an overview of how AutoHotkey works, showing which Windows API functions, messages, constants, structures, macros, etc are related to the AHK commands, functions and variables, or briefly describing its implementation.

8-) Download

Re: AutoGUI 2.5

by Alguimist » 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

Re: AutoGUI 2.5

by Alguimist » 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

Re: AutoGUI 2.5

by kczx3 » 11 Sep 2018, 06:25

Seems like what I was looking for is the X case in debugger.cop

Re: AutoGUI 2.5

by Alguimist » 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;

Re: AutoGUI 2.5

by kczx3 » 10 Sep 2018, 10:46

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

Re: AutoGUI 2.5

by StefOnSteroids » 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:

Re: AutoGUI 2.5

by SOTE » 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.

Re: AutoGUI 2.5

by DRocks » 07 Sep 2018, 18:42

thank you so much man it would be awesome! :)

Re: AutoGUI 2.5

by Alguimist » 07 Sep 2018, 03:32

Hello, DRocks. GUI undo/redo is already in sight, but I have to do some work first.

Re: AutoGUI 2.5

by DRocks » 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

Re: AutoGUI 2.5

by Alguimist » 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

Re: AutoGUI 2.5

by kczx3 » 04 Sep 2018, 07:13

Works great, thanks!

Re: AutoGUI 2.5

by Alguimist » 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)
}

Re: AutoGUI 2.5

by kczx3 » 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.

Re: AutoGUI 2.5

by Alguimist » 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

Re: AutoGUI 2.5

by kczx3 » 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

Top