AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
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 - Script Editor, GUI Designer, Debugger and Tools
I use control + down/up to move a line up/down...
![Image](https://joedf.github.io/assets/img/user/ahkneedhelp.gif)
![Image](https://joedf.github.io/assets/img/user/ahkfoundation.gif)
![Image](https://joedf.github.io/assets/img/user/mitlicense.gif)
![Image](https://joedf.github.io/assets/img/user/+greenpeace.gif)
![Image](https://joedf.github.io/assets/img/user/githubahkscript.gif)
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 - Script Editor, GUI Designer, Debugger and Tools
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.joedf wrote:I use control + down/up to move a line up/down...
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
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Download the latest version of AutoGUI and AutoHotkey and try again.
Control+D is used by many other editors and is probably easier to remember.
AutoGUI is already very user friendly but it can be improved by adding keyboard shortcuts customization.
I know of other applications which implement different shortcut sets to help users migrate; by re-mapping shortcuts anyone can use the program shortcuts he's already familiar with.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Can you make the whole screen dark i dont like when the typing box is dark???
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Is there any way to re-enable the designer mode after accidentally changing something but reverting the change again? How does AutoGui check if the file has been modified or not?
Re-parsing via the import option doesn't work since it doesn't import all options from the old script.
Re-parsing via the import option doesn't work since it doesn't import all options from the old script.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
When you leave Design Mode, you are asked whether you want to disconnect the GUI Designer (no way back) ou duplicate the tab contents (so that you can edit the generated code in one tab while having the GUI Designer active on another tab). If you have not yet finished designing the GUI, always choose the second option.
Basically: SCI_GETMODIFY, a Scintilla message. The whole process also involves SCI_SETSAVEPOINT and the notifications SCN_SAVEPOINTREACHED and SCN_SAVEPOINTLEFT.EpicLPer wrote:How does AutoGui check if the file has been modified or not?
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Hi.
1. Please, fix the following issue with Find/Replace window.
Maybe it's due to 4K Resolution and DPIscale 150%
1. Please, fix the following issue with Find/Replace window.
Maybe it's due to 4K Resolution and DPIscale 150%
Spoiler
2. Is it possible Comment/uncomment (Ctrl+K) only influences on the first semicolon?
Spoiler
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
AutoGUI is not yet compatible with High-DPI scaling, but I'm slowly starting to work on it. To fix the issue you mentioned, add the following function to AutoGUI\Lib\AuxLib.ahk:
Code: Select all
DPIScale(x) {
Return (x * A_ScreenDPI) // 96
}
"% DPIScale(257)" and "% DPIScale(226)". Let me know if it works.
![Wink ;)](./images/smilies/icon_e_wink.gif)
What do you mean is that when a block is selected, the toggle comment functionality should only operate on uncommented lines, preserving any existing comments inside the block? I couldn't understand the question.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Thank you, now it's working like a charm:)Alguimist wrote: AutoGUI is not yet compatible with High-DPI scaling, but I'm slowly starting to work on it. To fix the issue you mentioned, add the following function to AutoGUI\Lib\AuxLib.ahk:Then, search for the numbers 257 and 226 in AutoGUI\Include\FindReplace.ahk, and replace them with:Code: Select all
DPIScale(x) { Return (x * A_ScreenDPI) // 96 }
"% DPIScale(257)" and "% DPIScale(226)". Let me know if it works.![]()
Yes, that is what I meant - "when a block is selected, the toggle comment functionality should only operate on uncommented lines, preserving any existing comments inside the block".Alguimist wrote:What do you mean is that when a block is selected, the toggle comment functionality should only operate on uncommented lines, preserving any existing comments inside the block? I couldn't understand the question.
Or maybe to implement 2 Commenting/Uncommenting options - with and without preserving already existing comments.
There is "Column mode" function presents in NotePad++ to insert semicolon(slash etc.) at the beginning of each line to comment/uncomment whole blocks of code.
It is quite convenient to see what is commented and what is not.
In addition, it helps to edit the code in other editors, since not all of them support the auto-positioning of the carriage at the beginning of the first letter of the code, but almost all of them support the auto-positioning of the carriage at the beginning of the line.
Is it possible to implement such functionality too?
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
One thing you can do for now, while the desired features were not implemented yet, is to simply do a rectangular selection around the first characters of the block and delete them. Rectangular selection can be achieved in two ways:
• Using the mouse: press and hold the Alt key, then drag the mouse.
• Using the keyboard only: hold Alt + Shift, then move the selection with the arrow keys.
• Using the mouse: press and hold the Alt key, then drag the mouse.
• Using the keyboard only: hold Alt + Shift, then move the selection with the arrow keys.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Thank you:)Alguimist wrote: ↑07 May 2019, 15:39One thing you can do for now, while the desired features were not implemented yet, is to simply do a rectangular selection around the first characters of the block and delete them. Rectangular selection can be achieved in two ways:
• Using the mouse: press and hold the Alt key, then drag the mouse.
• Using the keyboard only: hold Alt + Shift, then move the selection with the arrow keys.
PS. Rectangular selection is similar to "Column mode" in NotePad++, it only lacks typing in each selected line while typing on keyboard.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Hi Alguimist,
While u are still actively developing AutoGUI, I just had an awesome idea:
It would be awesome if it was possible to have a horizontal split screen (on part of the file on top, the other part below).
Thus one could have the so called auto execute section always visible on top (with various settings for the script, which one might want to keep in view while working on the code). This would be outstanding.
Don't know how difficult the implementation would be, but at least the idea is now known.
Kind regards, S.
While u are still actively developing AutoGUI, I just had an awesome idea:
It would be awesome if it was possible to have a horizontal split screen (on part of the file on top, the other part below).
Thus one could have the so called auto execute section always visible on top (with various settings for the script, which one might want to keep in view while working on the code). This would be outstanding.
Don't know how difficult the implementation would be, but at least the idea is now known.
Kind regards, S.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
The implementation wouldn’t be too difficult if it utilized the multiple document views that Scintilla is capable of
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Thanks kczx3 for the reply.autocart wrote: ↑09 May 2019, 18:14...
It would be awesome if it was possible to have a horizontal split screen (on part of the file on top, the other part below).
Thus one could have the so called auto execute section always visible on top (with various settings for the script, which one might want to keep in view while working on the code). This would be outstanding.
...
If I may build on my own idea, though, it might be even better if the Script Directives dialog could be dockable, thus always visible. Maybe with a thighter layout, so that more information fits on one tab? And it should also dynamically include all global variables. I know, those are just thoughts. I hope they make some sense.
Regards, S.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Well, maybe in a separate dockable dialog. Somewhere, where the coder can have an overview. Actually I thought of variables which I might define at the beginning of the script to be valid for the whole thing. I am not sure what would be the best solution for that. Thanks for reading and replying, though.
-
- Posts: 143
- Joined: 22 Apr 2016, 06:50
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
New from Template creates an empty tab. I checked the source code in Editor.ahk
-> looking for a template file in the Windows Directory does not make any sense to me.
Also please consider making hotkeys customizable.
Code: Select all
Template := A_WinDir . "\ShellNew\Template.ahk"
Also please consider making hotkeys customizable.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
A standard AHK installation deploys an AHK template in that path to be used system-wide, like right-click in a folder > New > AutoHotkey Script.
AutoGui only tries to use that template. However, if one never installed AHK from the installer - that is, uses the portable zip version - there would be no template in that path, hence the empty tab. Unless there was some permissions issue or something that blocked the deployment of the template at install time.
Safest solution would be for AutoGui to embed the official template code, search for the presence of the official template and, if missing, use the embedded code. Plus it should allow the user to define and store their own template(s) within AutoGui's folder, and select the desired one on-the-fly.
AutoGui only tries to use that template. However, if one never installed AHK from the installer - that is, uses the portable zip version - there would be no template in that path, hence the empty tab. Unless there was some permissions issue or something that blocked the deployment of the template at install time.
Safest solution would be for AutoGui to embed the official template code, search for the presence of the official template and, if missing, use the embedded code. Plus it should allow the user to define and store their own template(s) within AutoGui's folder, and select the desired one on-the-fly.
Part of my AHK work can be found here.
Who is online
Users browsing this forum: No registered users and 6 guests