I have created a simple GUI with several buttons. I dont use the "default" setting in any of the buttons when I add them in the GUI. The GUI starts with all the buttons unfocused (no blue border) by using the command:
Code: Select all
GuiControl, -Default, %A_GuiControl%
Gui, Show, , Box
So far so good.
The Config button opens a secondary GUI when clicked, while the main GUI gets minimized in the systray.
Here is the problem:
If I close the second GUI, the main GUI gets restored. But this time, the Config button is focused with the blue border.
This also happens if I dont open the second GUI at all and instead, I only minimize and restore the main GUI. This time the button 1 is focused with the blue border.
I dont want any any button to have that blue border, after I close the second GUI or restore the main GUI.
I searched the forum and tried various methods but nothing works.
I think the closest to the solution, is this post by Lexikos but I cant make it work:
https://www.autohotkey.com/boards/viewtopic.php?t=23543#p111066
Any idea how I can fix this?