SceneSwitcher icon indicating copy to clipboard operation
SceneSwitcher copied to clipboard

focus window action

Open markonop93 opened this issue 1 year ago • 3 comments

pls add action to focus window if title or process match

markonop93 avatar Jan 06 '24 20:01 markonop93

Can you please provide an example just so I can better understand what the intended use case is?

if title or process match

I assume this is unrelated to the requested action, is it not? The "Process" and "Window" conditions already let you check for those conditions.

WarmUpTill avatar Jan 06 '24 23:01 WarmUpTill

i mean you can set window title or process for focus otherwise plugin dont know what window to focus

use case is for example focus firefox when twitch subscriber happen to not forget give something to new subscriber

markonop93 avatar Jan 07 '24 00:01 markonop93

I'd also love this for different functionalities, e.g. switching to OBS Window when coming back from AFK or refocusing a game if its log contains a line. It's currently doable with Run + a script (see e,g. https://stackoverflow.com/questions/35988863/using-command-line-batch-to-switch-to-focus-on-app), but an in-built way would be great so that it's system-independent.

Destroy666x avatar Jan 16 '24 13:01 Destroy666x

I implemented the option to set the focus window, maximize, minimize, or close a window with the linked PR. Focus

A build with this functionality will be available here in a few minutes: https://github.com/WarmUpTill/SceneSwitcher/actions/runs/8054462921?pr=1035

WarmUpTill avatar Feb 26 '24 19:02 WarmUpTill

thanks !! i try

markonop93 avatar Feb 26 '24 19:02 markonop93

Works fine for me personally. Just a small tip - "Set focus window to" doesn't quite make sense gramatically and is confusing, I'd change to either "Set focused window to" or even simplier "Focus window"

Destroy666x avatar Feb 29 '24 22:02 Destroy666x

Thanks for testing it!

"Set focus window to" doesn't quite make sense gramatically and is confusing, I'd change to either "Set focused window to" or even simplier "Focus window"

Agreed! Thanks for the feedback! :)

WarmUpTill avatar Mar 02 '24 10:03 WarmUpTill

all good !!

markonop93 avatar Mar 02 '24 12:03 markonop93