Page 1 of 1

IndividualPaths in profile.json

Posted: Fri Apr 08, 2016 1:53 am
by antitesebr
First of all, thank you guys for this amazing tool. I've been using it for some months and it's very helpful.

I'm coding a powershell script that will automatically check monitors' position (vertical or horizontal), resolution and set wallpapers accordingly to each monitor.

In "profile.json" file, where do you get data for the numbers in "IndividualPaths"? I observed that numbers like 0,1 and 2 are set depending of which output the monitor is plugged in.

Thank you in advance!

Re: IndividualPaths in profile.json

Posted: Sat Apr 09, 2016 6:43 pm
by sumo
Your welcome.

After reviewing the code, it seems its simply using the C# Method "Screen.AllScreens", I cant see any other magic going on, however I may be mistaken since I also found that I had written a program specifically for debugging the different ways to get the layouts which is here:
LayoutDump

Method 1 appears to be the C# one, the others use win32 api etc.

I believe the numbers are simply the order or something.