Is there a way to turn ON or OFF a second monitor ?
I have two screens, often I don't use the second one and I would like to put in my little PureBasic Deskboard application, a button to turn it on or off.
Under Windows 10 (and maybe other versions), it is possible to turn it on and off with the keyboard shortcut WIN + P which opens a pane on the right to choose an option (first only, dupplicate, extended, second only).
I searched the net but couldn't find any API or command line that could do it.
Any ideas ?
PS. One funny thing, my second screen is an old 17" that I didn't use because of a lack of horizontal space on my desk.
Looking at the options of Windows 10, I saw that it could rotate the image of any monitor in the desired direction, without the latter having a specific hardware option.
Now I have the help of PB clearly visible at all times on my second monitor in the vertical.
I simply unscrewed the original foot and made supports with my 3D printer
