Forum Discussion
Sharing part of the screen
- Apr 28, 2021Seem to be not possible at the moment, but heavily requested by user voices: https://microsoftteams.uservoice.com/forums/555103-public/suggestions/38834104-share-custom-area-of-screen
Meanwhile I have created a workaround as well. The app opens two windows, one to allow selecting the area to record, and the other to be shared over Teams. Feel free to use the executable on the https://github.com/mPyKen/ScreenAreaShare/releases/ or checkout the code on https://github.com/mPyKen/ScreenAreaShare.
- ACGendronDec 09, 2021Copper ContributorSimple post to thank you for this tool, was looking for one before I write one, you did it and it works great. Will open issues in your GitHub if I find some. Do you have a tip jar ?
- PyKenDec 09, 2021Copper Contributor
ACGendronThanks for your kind words!:)
> Do you have a tip jar ?
For now, I have the 'Sponsor' button on the github site
- Gerald_ForzaAug 07, 2022Copper Contributor
Try https://github.com/egonl/PortionOfScreen/releases, a resource friendly Windows App that makes sharing a part of your screen very easy in Teams. It's open source and just one executable.
- ProMaceNov 25, 2021Copper Contributor
PyKen Brilliant mate... I was looking for something exactly like this!!
I have a humble request to make this even easier to use. Could you look into:
- Creating the selection rectangle at a desired location, width and height?
(command line parameters: sel_x, sel_y, sel_w, sel_h)
- A command line parameter to control whether the selection rectangle is visible or not? If I dedicate the right half of my ultrawide to sharing via Teams and the program starts up with fixed parameters (sel_x, sel_y, sel_w, sel_h), the selection border need not be visible.
- Moving the Main Window to a desired location (i.e. out of the way)?
(command line parameters: main_x, main_y)
I assume the Main Window must be visible (not hidden) for sharing purposes, otherwise a 'hide main window' parameter could also make sense. Minimizing it doesn't work, because Microsoft Teams will stop sharing any minimized window. So being able to move the Main Window to a location where it's less distracting would be fantastic. Many thanks in advance!
- PyKenNov 26, 2021Copper Contributor
ProMace Thanks for the suggestions!:) I have added these features. After running the setup, you can run it (in case of the desktop link) like this
.\screen-area-share.lnk --cx=0 --cy=0 --cw=1920 --ch=1080 --rx=1920 --ry=0 --rw=1920 --rh=1080 --freeze
AFAIK hiding the main window is not possible. I have tried minimizing it as well. Moving the main window to another workspace does not help either. Currently, the only solution is to simply put another window above it.
- ProMaceNov 26, 2021Copper Contributor
Hi PyKen, thanks again for your effort, much appreciated! 🙂 I'll be testing your updated version over the next few hours.
This morning I tested Teams sharing with my work colleagues and it didn't work as expected, they couldn't see the contents of the Main Window. I set up a Teams call this evening from work to my home account and I found that moving the Main Window 'out of the way' (= outside of the visible desktop) doesn't work. In summary, I found the following on the receiver side of Teams sharing:
1. Nothing is shared if the Main Window is fully covered by another window.
2. The Main Window is fully shared if it is partially covered by another window.
3. If the Main Window is partially pushed outside of the desktop area, only the visible part of the Main Window is shared, zoomed.
4. If the Main Window is minimized, nothing is shown (normal Teams behavior).
5. If the Main Window is hidden, it turns black, as does the shared content (I used WinSpy to get the handle and AutoHotkey to hide the window).
If 3 were not the case, you could just push the Main Window to a place outside of the visible desktop. Is there a way to fully render the Main Window even when it's outside of the visible desktop? Because that would be a perfect! As it stands, when sharing half of my ultrawide screen the other half will be occupied by the Main Window, whereas you'd want to use that space to prepare whatever you're going to drag into the shared rectangle. If you manage to solve that issue, you can start asking $$$ for your solution! 🙂