GuiControl, Focus

Report problems with documented functionality
just me
Posts: 4808
Joined: 02 Oct 2013, 08:51
Location: Germany

GuiControl, Focus

08 Oct 2017, 05:40

Button wrote:The example above includes the word Default in its Options to make "OK" the default button. The default button's action is automatically triggered whenever the user presses ENTER, except when the keyboard focus is on a different button ...

That's not true if you switch the keyboard focus to another button using GuiControl, Focus.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


This seems to be related to How to set focus in a dialog box and should be fixed, at least in v2.
Remaining with AHK 1.1.25.02 until v2 will become beta.
User avatar
Delta Pythagorean
Posts: 306
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Equestria

Re: GuiControl, Focus

10 Oct 2017, 19:56

I think it has more to do with *how* the button was clicked/focused. For example controlling the button via Tab I.E Tabstops, would focus the button via Tab. However if you click on the button it has a different "effect." This has happened to me before but just to be sure, I'd suggest to see if ControlGet instead of GuiControlGet would do anything different. I don't know as of right now, I'm too lazy to check :P

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests