Detect window title

50 views
Skip to first unread message

Douglas Lima

unread,
Oct 30, 2023, 1:58:08 PM10/30/23
to AutoControl
Hello. Is there a way for an action to be triggered only when a Microsoft Edge window with a specific title is focused? 

When you use Edge Workspaces, each workspace is open on a separate window and the title of the workspace is shown in Windows 10 taskbar. I would like that Autcontrol detected that title and changed the Youtube User everytime I switch to a different workspace.

AutoControl support

unread,
Nov 1, 2023, 2:23:10 AM11/1/23
to AutoControl
AutoControl can detect when a window gains focus, but it cannot read the window title.
It can, however, read the title of the active tab in that window.

Here's how it's done:
image.png

The ACtl.getTabInfo() scripting function gives you the active tab title. Then you can use that information to decide what to do.

Douglas Lima

unread,
Nov 1, 2023, 12:50:12 PM11/1/23
to AutoControl
I see. Thank you very much.
Reply all
Reply to author
Forward
0 new messages