Skip to content

Window Spy: Custom icon is not displayed & control size values are swapped#28

Merged
Lexikos merged 2 commits intoAutoHotkey:mainfrom
Ragnar-F:main
Mar 15, 2026
Merged

Window Spy: Custom icon is not displayed & control size values are swapped#28
Lexikos merged 2 commits intoAutoHotkey:mainfrom
Ragnar-F:main

Conversation

@Ragnar-F
Copy link
Contributor

@Ragnar-F Ragnar-F commented Feb 27, 2026

This fixes two issues:

  • Window Spy has the default icon in the title bar when launched from the tray icon.
  • The size values of the control and its client area are swapped.

Forum bug report: https://www.autohotkey.com/boards/viewtopic.php?f=14&t=140242

@Lexikos
Copy link
Contributor

Lexikos commented Feb 28, 2026

Won't this prevent the icon from loading when the script is launched from Dash or directly? I suppose working both ways would require the use of A_LineFile.

@Ragnar-F
Copy link
Contributor Author

No, apparently not. If I copy the fixed file to C:\Program Files\AutoHotkey\UX and then launch Window Spy directly by double-clicking, via Dash or via tray icon, the custom icon is displayed for all three launch types.

My fix is a fallback for the case when inc\spy.ico is not found. If UX\inc\spy.ico is not found, the default icon is displayed as usual. If an exception occurs, the current icon remains unchanged.

Am I missing something that is causing issues with my fix?

@Lexikos
Copy link
Contributor

Lexikos commented Mar 15, 2026

I incorrectly read it as -try +try rather than try +try.

@Lexikos Lexikos merged commit 1c22432 into AutoHotkey:main Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants