Unfortunately, none of these answers work to show the same monitor numbers as Windows shows when there are multiple graphics card outputs. For example, if 2 monitors A and B are connected initially to graphics card outputs 1 and 2 this works, and the Windows monitor assignments will correspond to these as 1 and 2. If then you disconnect A and B from graphics card outputs 1 and 2 and connect to the graphics card output 3 and 4, the monitor numbers returned by the Regex method will return 3 and 4, which do not correspond to the Windows monitor numbers shown in display settings and will still show as 1 and 2. I am still struggling with how to find out the same numbers that the windows display with 3+ monitors and 5 graphics card outputs.