Winactivate sets focus on first edit field
Posted: 09 Apr 2021, 07:33
Not sure if this is actually a bug but when a gui is minimized and winactive is used on it, it sets focus on the first edit field of that window. It only does that when the window is minimized.
I'm using Windows 10 and Autohotkey version 1.1.33.06.
Here is an example:
I'm using Windows 10 and Autohotkey version 1.1.33.06.
Here is an example:
Code: Select all
Gui,testgui: new
gui, add, edit, w50 h20 x20 y20
gui, add, edit, w50 h20 x+20
gui, add,button, x+50, testbutton
gui,show, x900 y200 w500 h500, testgui
guicontrol ,focus, testbutton
return
f3::
winactivate, testgui
return
^4::
reload
return