Is it possible to set breakpoint on some data condition ?
Let`s say, stop after current command if variableXY is changed.
Or, stop after current command if variableXY is ... (=x || <x || ...).
Is it possible to set group of user variables to show in the variables window ?
Is there any information for AUTOGUI development/plan/to-do-list/... ?
AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Re: AutoGUI - Script Editor and GUI Designer
Hi there, I still have trouble with the Import feature regardless of whether I choose Clone or Parse.burque505 wrote:You can do it. Start your script.
(Using AutoGui 2.2.0, should work with other versions)
File -> Import Gui -> Clone window. You'll see a window where it says "Activate the target window and click the "Clone" button".
Choose your script, click "Activate", click "Clone". You'll see a clone of your script on top of the AutoGui window (look at the caption). Now you can edit the layout. If you click into the AutoGui window, you can choose the View menu item and switch back and forth between "Editor" and "Design".
Regards,
burque505
1. The import doesn't include all the code that's in the script.
For example:
I set the Font for a control using Properties and save the script. When opened in a text editor, the ahk file includes the font code but when imported into AutoGUI it's missing.
2. Sometimes when I save what I've created, the saved script doesn't contain all the code.
For example:
I set a gLabel for a control using Properties, add target code for the label (below 'do not edit above this line') and save the script. When opened in a text editor the target code is missing and, obviously, the script won't run because the label doesn't have a target.
How does this happen? Or am I doing something wrong? Cheers.
Re: AutoGUI - Script Editor and GUI Designer
Conditional and watch breakpoint types are not supported.MANKIND wrote:Is it possible to set breakpoint on some data condition ?
It can be done using a regular expression. For example, if you want to show only the variables "a" and "b", enter the following in the search field: "^(a|b)$".MANKIND wrote:Is it possible to set group of user variables to show in the variables window ?
Some of the features planned for AutoGUI are: theme customization and context-aware autocompletion. Currently I'm redesigning the properties dialog. After that, I will continue working on a AHK-WinAPI HTML table.MANKIND wrote:Is there any information for AUTOGUI development/plan/to-do-list/... ?
AutoGUI doesn't strip any portion of the code when saving. To avoid the confusion with the delimiter, I'm considering to remove it and make the generated code read-only. Then, when an attempt is made to modify the generated code, a message box asks if the user wants to leave the designer, if the GUI has been finished. Another way to modify the generated code is to right-click the tab and select "Duplicate Tab Contents". This opens a new tab with the contents of the current tab, which is not associated with the GUI designer. By making the generated code read-only, AutoGUI will be able to generate more content. Pre-defined snippets of code, for example.kiwichick wrote:The target code is missing...
Re: AutoGUI - Script Editor and GUI Designer
Why is it so?Alguimist wrote: Conditional and watch breakpoint types are not supported.
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?
Re: AutoGUI - Script Editor and GUI Designer
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.MANKIND wrote:Why is it so?
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 {
; ...
}
}
Re: AutoGUI - Script Editor and GUI Designer
It sounds interesting.
Conditional and watch breakpoint types
would greatly increase debugging power of AUTOGUI.
Conditional and watch breakpoint types
would greatly increase debugging power of AUTOGUI.
Re: AutoGUI - Script Editor and GUI Designer
+1 Breakpoints
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: AutoGUI - GUI Designer and Script Editor
Hello Alguimist,
As Asmodeus pointed out already here: https://autohotkey.com/boards/viewtopic ... 66#p163066
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.
As Asmodeus pointed out already here: https://autohotkey.com/boards/viewtopic ... 66#p163066
there is an issue with replace all.Asmodeus wrote:; *********************************************************************** OPEN ISSUES ****************************************************************************************************
...
i re-checked there is def. an issue with replace all. replace should work no matter where the cursor is:
...
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
Thank you! Your feedback is much appreciated.
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.autocart wrote:As Asmodeus pointed out already...
Re: AutoGUI - Script Editor and GUI Designer
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.
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, GUI Designer, Debugger and Tools
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, GUI Designer, Debugger and Tools
Thank you, that's what I needed!
Nice acceptable workaround that purrs like a kitten!
THANK'S A LOT for this quick helpful support!
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
another question:
It seems that I can not change the keyboard-shortcuts in the GUI.
Can I change them in the code somewhere?
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
A way to change them would be handy
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
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:
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.
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
- 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
Seems good enough for me atm. Thx very much! Can't say much about the rest. Must play with the Software a bit more.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
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
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
Which hotkeys?kczx3 wrote:I’m more interested in changing the hotkeys for the code editor itself.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
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 or AHK-Studio
I’m also interested in changing the hotkeys for the code editor itself.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.
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
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: No registered users and 21 guests