AutoGUI - Script Editor, GUI Designer, Debugger and Tools

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 - Script Editor, GUI Designer, Debugger and Tools

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by SL5 » 29 Sep 2018, 09:27

joedf wrote:I use control + down/up to move a line up/down...
me too. and i could list you 9 other IDEs who has it predefined so. i think its good idear if IDEs give everbody the freedom to to it like the want.

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by joedf » 28 Sep 2018, 21:08

I use control + down/up to move a line up/down...

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by Alguimist » 28 Sep 2018, 18:36

For almost one year, I've been using exclusively AutoGUI to edit AHK scripts. Before that, I was also using AkelPad, where Ctrl+D inserts date and time. Most Scintilla-based text editors use Ctrl+D to duplicate line because that's a pre-defined behavior of the Scintilla control. In AutoGUI, a line is duplicated with Ctrl+Down (you can see a list of all keyboard shortcuts by going to Help > Keyboard Shortcuts).

Re: AutoGUI or AHK-Studio

by SL5 » 28 Sep 2018, 07:07

kczx3 wrote:I’m not sure it matters which ones specifically. Don’t want you changing it for everybody. If it bothered me enough I’d look at changing them in code myself. But as an example, most modern browsers use Ctrl + / to toggle a line comment.
I’m also interested in changing the hotkeys for the code editor itself.
for e.g. i use about 10 editors the use ^d for duplicate line.
BTW in AHK-Studio every hotkeys is reconfigurable. BTW also in ida,phpstorm,resharper,webstorm all hotkeys are reconfigurable.
BTW too all otthers who know also AHK-Studio. what you like more? thats my fist time i try AutoGUI

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by kczx3 » 05 Aug 2018, 19:04

I’m not sure it matters which ones specifically. Don’t want you changing it for everybody. If it bothered me enough I’d look at changing them in code myself. But as an example, most modern browsers use Ctrl + / to toggle a line comment.

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by Alguimist » 05 Aug 2018, 16:48

kczx3 wrote:I’m more interested in changing the hotkeys for the code editor itself.
Which hotkeys?

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by kczx3 » 04 Aug 2018, 12:58

I’m more interested in changing the hotkeys for the code editor itself. To match those of Visual Studio Code

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by autocart » 04 Aug 2018, 11:16

Alguimist wrote:You can write a script with hotkeys to send keys or activate menu items.

Example:

Code: Select all

#IfWinActive AutoGUI v
^E:: WinMenuSelectItem A,, Tools, Expressive
Seems good enough for me atm. Thx very much! Can't say much about the rest. Must play with the Software a bit more.

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by Alguimist » 04 Aug 2018, 11:07

The keyboard processing in AutoGUI is done through WM_KEYDOWN, WM_SYSKEYDOWN and SCN_CHARADDED.

The keyboard shortcuts follow the standards, except in a few cases.

What keyboard shortcuts would you like to change? You can write a script with hotkeys to send keys or activate menu items.

Example:

Code: Select all

#IfWinActive AutoGUI v
^E:: WinMenuSelectItem A,, Tools, Expressive
I'm currently in doubt about some keyboard shortcuts:
- The "Script" tab in GUI Properties (F10), where you can see only a few directives, and they only apply to the code generated by the GUI designer, was moved to a separate script, where almost all directives and commands of AHK that comprise the preamble of a script are available and can be applied to any tab. What should be the shortcut for this window? Ctrl+D (Script Directives), Ctrl+P (Script Properties)? Some other key combination?
- F10 is in use by GUI Properties. I'm planning to eventually implement "Compile and Run", and set F10 to it (or maybe Ctrl+F9, since "Run Selected Text" is rarely used). And then move GUI Properties to F11. The functionality of F11 (Show/Hide preview window) would then be moved to F12 or Shift+F12.

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by kczx3 » 04 Aug 2018, 05:49

A way to change them would be handy

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by autocart » 03 Aug 2018, 22:09

another question:
It seems that I can not change the keyboard-shortcuts in the GUI.
Can I change them in the code somewhere?

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by autocart » 03 Aug 2018, 21:57

Thank you, that's what I needed!
Nice acceptable workaround that purrs like a kitten!
THANK'S A LOT for this quick helpful support!

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

by Alguimist » 03 Aug 2018, 20:40

Some text editors also do Replace All from current position. But if you want to change this behavior, change the following lines in FindReplace.ahk:

Code: Select all

314: StartPos := StrLen(TempText) + 1
   > StartPos := 1

344: Sci[n].SetTargetStart(Sci[n].GetCurrentPos())
   > Sci[n].SetTargetStart(0)

Re: AutoGUI - Script Editor and GUI Designer

by autocart » 03 Aug 2018, 19:58

Ok, thx, Alguimist!
The problem with the behaviour right now is that it opens up doors for really bad code mess up. This makes this one a really dangerous editor, if "replace all" only replaces text after or below the caret (by default and without warning), apart from the inconvenience.
Therefore, if implementing these options into the dialog might take a considerable amount of time, may I suggest to "quickly" change the default behaviour either to "entire scope" or "wrap around", which should result in the same end result for the "replace all" operation, right?
Regards, and have a good day, S.

Re: AutoGUI - Script Editor and GUI Designer

by Alguimist » 03 Aug 2018, 19:28

Thank you! Your feedback is much appreciated.
autocart wrote:As Asmodeus pointed out already...
What is lacking in the Find/Replace dialog is a group box with the options "From cursor" and "Entire scope", as well as the option "Wrap around". I will start to work on it as soon as I finish some changes in progress.

Re: AutoGUI - GUI Designer and Script Editor

by autocart » 03 Aug 2018, 15:11

Hello Alguimist,

As Asmodeus pointed out already here: https://autohotkey.com/boards/viewtopic ... 66#p163066
Asmodeus wrote:; *********************************************************************** OPEN ISSUES ****************************************************************************************************
...
i re-checked there is def. an issue with replace all. replace should work no matter where the cursor is:
Image
...
there is an issue with replace all.

I am really happy with AutoGUI existing. Thx a lot for that!!!!
Still, it really needs to live a bit more up to its potential. AHK has quite a number of Editors and IDEs but none of them is *really* good. AutoGUI IMHO is the best of all that I tried but, as mentioned, also falls a few steps short. Therefore my feedback is meant as some form of friendly help to improve AutoGUI. Thx for listening.

Regards, S.

Re: AutoGUI - Script Editor and GUI Designer

by joedf » 24 Jul 2018, 08:50

+1 Breakpoints

Re: AutoGUI - Script Editor and GUI Designer

by MANKIND » 24 Jul 2018, 01:18

It sounds interesting.
Conditional and watch breakpoint types
would greatly increase debugging power of AUTOGUI.

Re: AutoGUI - Script Editor and GUI Designer

by Alguimist » 23 Jul 2018, 11:52

MANKIND wrote:Why is it so?
A watch could be improvised by making all execution pass through the debugger break function, where the value of the watched variable is compared with the previously stored value. And then set a breakpoint in the next line. A conditional breakpoint, on the other hand, requires some coding.

Code: Select all

e := "2 > 3 || 4 < 7 || 2 == 3 || 0 || 3 <= 4"

o := StrSplit(e, "||", " ")

For Each, Item in o {
    If (Evaluate(Item)) {
        MsgBox %Item% is true.
    } Else {
        MsgBox %Item% is false.
    }
}

Evaluate(Expression) {
    v := StrSplit(Expression, " ")
    op := v[2]

    If (op == ">") {
        Return (v[1] > v[3])
    } Else If (op == "<") {
        Return (v[1] < v[3])
    } Else If (op == "==") {
        Return (v[1] == v[3])
    } Else If (op == "!=") {
        Return (v[1] != v[3])
    } Else If (op == "<=") {
        Return (v[1] <= v[3])
    } Else If (op == ">=") {
        Return (v[1] >= v[3])
    } Else If (op == "") {
        Return v[1]
    } Else {
        ; ...
    }
}
I will do some tests later and see if it works. ;)

Re: AutoGUI - Script Editor and GUI Designer

by MANKIND » 23 Jul 2018, 07:50

Alguimist wrote: Conditional and watch breakpoint types are not supported.
Why is it so?
Is it hard/... to include that in your/AutoHotkey debug implementation?
Or that doesn't fit well in your plans now?
In the other words, can we expect these in AUTOGUI in some/when future time?

Top