How to emulate MONITOR DETECT button press from Windows 10 display settings in Bash/PowerShell script

1.3k Views Asked by At

I need to do display detection in windows script(powerShell is better for this I think?).

Which command will run the same thing which is running when I'm pressing button selected on the image below? Detect button

1

There are 1 best solutions below

0
On BEST ANSWER

Look into WASP.. you designate a window to look for and which button to press.

https://wasp.codeplex.com