Activate Control on Gui Without focusing on it Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Stinkfoot9
Posts: 51
Joined: 29 May 2022, 12:17

Activate Control on Gui Without focusing on it

Post by Stinkfoot9 » 21 Mar 2023, 04:00

I'm trying to do the code below with a hotkey but when i do it it sets focus to the gui which is undesired because i lose my place on whatever I'm working on.

Is there a way to interact with gui controls without setting focus to the gui?

I will post the whole script if need be.

Code: Select all

	Gui,+LastFound
	WinGetPos,jx,jy,jw,jh
	jy1 := (jy - 387)
	Guicontrol,move,showhide, y310 
	Guicontrol ,show,file 
	Gui,show, h340 y%jy1%
	tog = 

User avatar
Hellbent
Posts: 2109
Joined: 23 Sep 2017, 13:34

Re: Activate Control on Gui Without focusing on it  Topic is solved

Post by Hellbent » 21 Mar 2023, 04:09

Add the NA option to your Gui, Show

i.e

Code: Select all

Gui,show, h340 y%jy1% NA

User avatar
Stinkfoot9
Posts: 51
Joined: 29 May 2022, 12:17

Re: Activate Control on Gui Without focusing on it

Post by Stinkfoot9 » 21 Mar 2023, 04:42

Hellbent wrote:
21 Mar 2023, 04:09
Add the NA option to your Gui, Show

i.e

Code: Select all

Gui,show, h340 y%jy1% NA
Awesome! Thankyou!

Post Reply

Return to “Ask for Help (v1)”