AutoGUI 2.5

Script editor, GUI designer, debugger and tools for AutoHotkey
teadrinker
Posts: 1018
Joined: 29 Mar 2015, 09:41
Contact:

Re: AutoGUI 2.5

30 Sep 2019, 09:16

@Alguimist
I noticed a few errors in Windows.xml.
GWLP_WNDPROC (not GWL_WNDPROC)
GWLP_HINSTANCE
GWLP_HWNDPARENT
GWLP_USERDATA
GWLP_ID
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowlongptra#parameters
User avatar
Alguimist
Posts: 347
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

11 Oct 2019, 04:36

kczx3 wrote:
30 Sep 2019, 07:30
Yes, though at times it doesn't seem quite as long. Actually, right now I have 11 tabs open in AutoGUI. They all show the same delay except for Installer.ahk (from AHK installation). That one for whatever reason seems to load quicker and almost normal loading time.
Some of the possible reasons for this delay in the exhibition of the Explorer menu:
• Most probably a security software is affecting the performance, considering that Installer.ahk is not affected by the issue.
• A shell context menu extension handler may (also) be responsible.
• AutoHotkey is not digitally signed and/or not installed on a trusted location and a software policy or security software is in effect. If this is the case, you may try one or more of the following steps as a way to diagnose the problem: 1) Check if some other unsigned software that is able to display the shell context menu, 7-Zip File Manager, for example, has a delay when showing the menu. 2) Create a temporary copy of an AHK script file in Program Files and test the Explorer menu for this file in AutoGUI. 3) Reinstall AHK with the option "UI Access" enabled. Then run AutoGUI with AutoHotkeyU64_UIA.exe, which is signed by a local certificate.
• The files are on a hard disk that wakes up of a power plan configuration that turns off the device after a few minutes (less likely).

As a side note, you may significantly speed up menu display in any window with these settings:
• Somewhere in the system settings, appearance and performance, disable the option "Fade or slide menus into view".
• Set MenuShowDelay to a lower value or 0 in the registry key HKEY_CURRENT_USER\Control Panel\Desktop.
User avatar
Alguimist
Posts: 347
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

11 Oct 2019, 04:43

@teadrinker: Thanks for reporting. I will soon add these constants to the database. You may notice in WinUser.h that both constants are defined as -4, but GWL_WNDPROC is undefined when targeting 64-bit Windows. The "P" variant was added to be in accordance with the name of GetWindowLongPtr. There are many constants with multiple names in the WinAPI headers. For example: IDI_INFORMATION and IDI_ASTERISK, MFT_RADIOCHECK and MF_USECHECKBITMAPS...
User avatar
kczx3
Posts: 920
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.5

11 Oct 2019, 07:48

Alguimist wrote:
11 Oct 2019, 04:36
Some of the possible reasons for this delay in the exhibition of the Explorer menu:
Looks like the biggest impact is due to the files being accessed and modified from my Google Drive folder on my PC. If I open one that is in Documents locally then it seems to be quicker for the most part. I will disable it for now. Survived fine without it before :)

Thanks for your detailed investigation!
User avatar
kczx3
Posts: 920
Joined: 06 Oct 2015, 21:39

Re: AutoGUI 2.5

12 Oct 2019, 12:11

@Alguimist if you're interested, here's a diff of my include\editor.ahk that has a few modifications. I had to zip it to upload it.
  • SetEndAtLastLine(false)
  • Sci[n].AssignCmdKey(SCK_HOME, SCI_VCHOMEWRAP) (instead of SCI_HOMEWRAP)
  • Vertical line drawn at column 120
  • selection is made partially transparent so syntax highlighting shows through
  • adjusted matching brace styling
  • several syntax elements made italicized
  • indentation highlight guide
  • modified auto insertion of quotes
  • toggleComment puts a space after the semicolon (cuz it drives me crazy not having a small gap)
Attachments
AutoGUI-Editor Diff.zip
(27.01 KiB) Downloaded 9 times
User avatar
Alguimist
Posts: 347
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

12 Oct 2019, 20:27

Thanks, @kczx3! ;)

I'm about to release a new version of AutoGUI with some bug fixes, so I cannot add any of these changes right now, except Scintilla styling. After that, I will finish some details regarding theme customization with values loaded from XML files. You will no longer have to define selection alpha and italics directly in the script.

Some of the features you propose are a matter of preference ("ExtraScrolling", edge line, comment style and even SCI_VCHOMEWRAP), so they cannot be made default settings, but I will arrange for them to be in the settings file.
User avatar
Alguimist
Posts: 347
Joined: 05 Oct 2015, 16:41
Contact:

Re: AutoGUI 2.5

12 Oct 2019, 20:29

Version 2.6.2:
• Fixed: bug in the opening of "UTF-8 without BOM" files containing double-byte characters.
• Fixed: "highlight identical text" being affected by the search flags of Find/Replace.

:arrow: Download

Return to “AutoGUI”

Who is online

Users browsing this forum: No registered users and 2 guests