November 3, 2023

Teams Quick Switch Meeting Background (Teams New)

I have explained in a previous post how to import meeting background images to the New Microsoft Teams Client. Now I have added a nice feature to quickly switch backgrounds from the Teamsy Launcher.

Current situation / Problem description

It is quite cumbersome to set a meeting background manually: you have to click on more, go to the video effects, click on "Show all", scroll down to the bottom and then select the local background, apply it and finally close the settings panel.

Moreover you can not identify the background by name. You have to manually select the thumbnail.
(In Classic old Teams client, the name of the background file was displayed over the thumbnail but now the file name has to be an encrypted GUID.)

Implementation Idea

Using the UI Automation Library it shall be possible to click on the UI Element to select a background.

It shall also be possible to assign for each custom local background a name that can be passed as argument to identify backward the corresponding file and then the corresponding background thumbnail UI element to click.

AutoHotkey Code

Main functions are implemented in the Teams.ahk Library.
These are :
  • Teams_BackgroundName2File: it will given a background name return the corresponding Background file name
  • Teams_BackgroundFile2Name: it allows to set a name to a background file
  • Teams_MeetingBackgroundSet : it does the clicking for a meeting to set a background 

Demo / Screencast

PowerTools usage

Background naming

From the TeamsShortcuts menu (Left click on System Tray Icon)-> Custom Backgrounds->Set Background Name



Do not use a . in the background name.

You can also directly edit the PowerTools.ini file, section [Teams] property TeamsBackgroundNames

Switching Background

Run the Teamsy Launcher and use the 'bg' keyword.
If you pass an argument, it will try to match it with the background names defined as see section above.
It tries to match with the name starting with the input argument. You can use * wildcard as well.
So if you are not sure if it starts with the search term, begin with a *.
It will stop at the first match.

If you don't pass any additional background name, you will be prompted via a FileSelect to select the background file in your local Background folder.

To remove your background, you can use the reserved name "no".

See also

No comments:

Post a Comment