While creating SetBackground it became very clear to me that getting the (real) monitor resolution as well as the scale wasn’t a walk in the park. Especially if any of them changes after execution of the code. Said it before and will do it again; I’m no programmer so there might be ways that I’m unaware of but me and google are speaking the same kind of language so if there are, those are hard to find. ;) Learning, adapting and evolving is, apart from my family, the one main thing that makes me want to get up and work in the morning. That is however also the thing that might postpone the release of something that works just because that I want to make it better.
And that is what happened here :P
I found a way of making an iteration of a powershell object’s properties to return dynamic values but not a way to add nor remove an entire object from the iteration.
For now, here is “Get-Monitors”.
I got working samples of changing the resolution and scale for each monitor using powershell/CSharp, but that needs tuning… Those I might release if there’s enough interest.
Comentarios