disable auto-selection GUI

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
ibieel
Posts: 216
Joined: 17 Oct 2021, 23:30

disable auto-selection GUI

Post by ibieel » 26 Jan 2022, 17:18

hey guys, is there any way to disable the "auto selection" that happens with the GUI by default.
for example, sometimes I didn't click on "Gui, Edit" but it is selected automatically. sometimes users write without realizing it somewhere in the GUI
how do i make ANY GUI get selected automatically?

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: disable auto-selection GUI

Post by amateur+ » 26 Jan 2022, 17:28

Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

User avatar
ibieel
Posts: 216
Joined: 17 Oct 2021, 23:30

Re: disable auto-selection GUI

Post by ibieel » 26 Jan 2022, 17:49

if I don't want any ControlID as "Focus", how do I do it?

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: disable auto-selection GUI

Post by amateur+ » 26 Jan 2022, 18:02

I suppose there must be a focused control when the window is active. If it is true, then you may use some workarounds, I think.

Code: Select all

gui, Add, Text, vT
gui, Add, Edit, vE
GuiControl, Focus,  T
gui, Show
GuiControlGet, Focused, Focus
MsgBox, % Focused
return
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

Post Reply

Return to “Ask for Help (v1)”