Some time ago it worked this way. The "else" of "FileExist(Template)", responsible for pasting the embedded code, was discarded because of a tool called "Script Directives" (File > Script Directives), which offers great flexibility in the definition of a template or script preamble created according to the needs. There is a feature missing is this tool, though: the ability to save the current definitions. For a moment I considered to make some room for a tab called Template in Script Directives, perhaps by merging the last two tabs ("Require" and "Includes") into a single tab. The problem is that a "Template Manager" may be more suitable as a separate dialog or submenu in AutoGUI, as templates may not be composed solely of directives (for example, the template for a class or for a GUI) or as part of a "Snippets Manager" (a planned feature).Drugwash wrote: 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.
AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Ah yes, a dedicated tool would be more flexible for extended purposes. Still, maybe a (very) simple and straightforward template should be easily available, next to the option to launch the tool for more complex templates. Considering the improvements in AHK2EXE (script directives) I guess a generic template containing common directives and maybe a handful of user-defined variables could satisfy most users/scripts. Just an opinion.
Part of my AHK work can be found here.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
I like AutoGui very much. At the moment i'm only missing the possibility of relative positioning of the controls in the code. I like to see positioning with wp, hp, xp, yp xm, ym etc and maybe xs, ys. May be this could be built in the Alignmenttools. Perhaps as an option.
Thank you very much for your very helpful program.
haichen
Thank you very much for your very helpful program.
haichen
-
- Posts: 25
- Joined: 04 Jan 2019, 03:33
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Hi, what do I need to do workaround the message "AutoGui Has not been adapted to High-DPI scaling"? Thanks.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
What I did to fix this was open AutoGUI.ahk in notepad++, goto line 202 and I commented out
Code: Select all
If (A_ScreenDPI != 96) {
Gui Auto: +OwnDialogs
MsgBox 0x30, Warning, %g_AppName% has not been adapted to High-DPI display scaling.`n`nThe program will exit.
ExitApp
}
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Once again I am here to check if there are any updates.
Really, really thank you for keeping this awesome utility updated.
Really, really thank you for keeping this awesome utility updated.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Hi all.
I'm starting to learn AHK and of all the ide's I've tried, AutoGui is the one I like the most, but for now I only have a question:
How can we change Theme colors, like for eg. AHK Studio has? Or can someone point me the lines of code to change the colors used by it?
Thanks in advanced and keep up the good work
I'm starting to learn AHK and of all the ide's I've tried, AutoGui is the one I like the most, but for now I only have a question:
How can we change Theme colors, like for eg. AHK Studio has? Or can someone point me the lines of code to change the colors used by it?
Thanks in advanced and keep up the good work
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Considering that the GUI designer of AutoGUI is a visual tool, of that kind sometimes referred to as WYSIWYG ("What You See Is What You Get"), that is, controls are positioned, moved and resized in the preview window in a way that reflects the aspect that they will ultimately assume in the final result, the use of absolute positioning can only be straightforward by means of such visual environment. The relative positioning of GUI controls is mainly a way of textually describe the layout of a window when no GUI designer is available or in some situations where the positioning of a control has to be dynamically calculated.haichen wrote:At the moment i'm only missing the possibility of relative positioning of the controls in the code.
@flipside555 and @karnahaz: As I'm not testing new releases of AutoGUI in a High-DPI environment, I decided to temporarily prevent the execution of AutoGUI under this condition. AutoGUI makes use of DllCalls and system messages involving coordinates and control size, which are not natively scaled by AHK.
@elModo7: Thanks for your comment!
@MARCAN: Thank you! I'm currently working on theme customization, but it may take some time to finish. To change the colors, search for "DefaultTheme" or "DarkTheme" in Include\Editor.ahk. These functions no longer exist in the development version though, as they were replaced by a generic mechanism that is able to load styles from an XML file for any lexer supported by Scintilla.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Thank you and I'm looking forward for the new developments.
Best regards,
MC
Best regards,
MC
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Hi again.
I have another doubt:
how can we change/create the hotkeys / shortcut for "collapse all folds" and "expand all folds"? And other hotkeys of AutoGui commands?
I went to AutoGUI\Include\Editor and found lines 1347 and 1352. Tried to create hotkeys (using another editor), but they didn´t worked.
Eg:
#+q::
CollapseFolds() {
Sci[TabEx.GetSel()].FoldAll(0) ; SC_FOLDACTION_CONTRACT
}
Could you please tell me what I am doing wrong? Or isn't possible to change/create them?
Sorry for all the newbie questions...and thank for your time and patience.
Best regards
MC
I have another doubt:
how can we change/create the hotkeys / shortcut for "collapse all folds" and "expand all folds"? And other hotkeys of AutoGui commands?
I went to AutoGUI\Include\Editor and found lines 1347 and 1352. Tried to create hotkeys (using another editor), but they didn´t worked.
Eg:
#+q::
CollapseFolds() {
Sci[TabEx.GetSel()].FoldAll(0) ; SC_FOLDACTION_CONTRACT
}
Could you please tell me what I am doing wrong? Or isn't possible to change/create them?
Sorry for all the newbie questions...and thank for your time and patience.
Best regards
MC
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
@MARCAN: Try the code below. Ctrl+Backspace collapses all folds. Ctrl+Shift+Backspace expands all folds.
Code: Select all
#IfWinActive AutoGUI v
TopMenu := " &View "
^Backspace::
MenuItem := "Collapse All Folds"
WinMenuSelectItem A,, %TopMenu%, %MenuItem%
Return
^+Backspace::
MenuItem := "Expand All Folds"
WinMenuSelectItem A,, %TopMenu%, %MenuItem%
Return
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
HiAlguimist wrote: ↑28 Sep 2019, 17:21@MARCAN: Try the code below. Ctrl+Backspace collapses all folds. Ctrl+Shift+Backspace expands all folds.
Code: Select all
#IfWinActive AutoGUI v TopMenu := " &View " ^Backspace:: MenuItem := "Collapse All Folds" WinMenuSelectItem A,, %TopMenu%, %MenuItem% Return ^+Backspace:: MenuItem := "Expand All Folds" WinMenuSelectItem A,, %TopMenu%, %MenuItem% Return
Thank you for your prompt response and time.
I've inserted the code in the editor.ahk, line 1347, saved and closed it, but it didn't work. Did I missed something?
Best regards,
MC
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
@MARCAN: The code I posted should be executed as a separate script file. Custom keyboard shortcuts will be implemented in a feature version of AutoGUI.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Can´t wait for the next version.
And many thanks for the collapse/expand script...it works like a charm.
Best regards and good work.
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Hello again.
I have a suggestion, althought it might be in development.
It would be great if all unsaved changes (lines) could have a mark next to line numbers.
Can it be done?
Thank you and best regards,
MC
I have a suggestion, althought it might be in development.
It would be great if all unsaved changes (lines) could have a mark next to line numbers.
Can it be done?
Thank you and best regards,
MC
-
- Posts: 26
- Joined: 23 Dec 2018, 00:40
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
is that any way to clean select ; ?
thanks
thanks
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Hi
another suggestion:
a way to store personalized auto-execute code, reusable for new scripts.
that would be cool.
Best regards
MC
another suggestion:
a way to store personalized auto-execute code, reusable for new scripts.
that would be cool.
Best regards
MC
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Hi
I'm trying to open the program Tools, like MagicBox, Constantine and similar ones, but I'm not being able to, in my office PC, which I don't have admin rigths (and maybe that should be the cause).
I've tried them in my home PC and they work fine.
I already removed and add them again and that din't work either.
I added 2 or 3 other tools and they work as expected, except Pixel Predator by HellBent (don't have a clue why).
The AHK version is v1.1.30.03, portable, if it should matters.
Is there a workaround for it?
Thank you for your time, best regards
MC
I'm trying to open the program Tools, like MagicBox, Constantine and similar ones, but I'm not being able to, in my office PC, which I don't have admin rigths (and maybe that should be the cause).
I've tried them in my home PC and they work fine.
I already removed and add them again and that din't work either.
I added 2 or 3 other tools and they work as expected, except Pixel Predator by HellBent (don't have a clue why).
The AHK version is v1.1.30.03, portable, if it should matters.
Is there a workaround for it?
Thank you for your time, best regards
MC
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
By the way, when I open the ahk files of the Tools and run them, they do work, but thats the point of the Tools tab, right?
Run the Tools with one click, inside the AutoGui.
Cheers
Run the Tools with one click, inside the AutoGui.
Cheers
-
- Posts: 150
- Joined: 28 Sep 2016, 11:14
- Contact:
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Howdy everyone.
Has any one found a workaround to the "AutoGUI has not been adapted to High-DPI display scaling" error message? A setting in Window?
Thanks in advance for any thoughts.
Has any one found a workaround to the "AutoGUI has not been adapted to High-DPI display scaling" error message? A setting in Window?
Thanks in advance for any thoughts.
Who is online
Users browsing this forum: No registered users and 5 guests