Page 1 of 1

Enable/Disable external screen

Posted: 20 Jun 2018, 22:51
by sideshowbond
I am trying to toggle the external screen via macros.

Code: Select all

ActionScript.SetProperty(System.ExternalDisplay.Enabled,[value])
is asking for a string if I read the log viewer right. What string would that be and what would be the correct syntax.

Cheers

Re: Enable/Disable external screen

Posted: 20 Jun 2018, 23:05
by Gregory
You are missing quotes around the property ID:

Code: Select all

ActionScript.SetProperty("System.ExternalDisplay.Enabled", true)
PanelManager.SetScreenState("externalDisplay", 0, System.ExternalDisplay.Enabled)
The second line is also required on Titan Mobile and TitanOne to either open or close the additional application window; it should not be used on consoles as they don't work the same way and so may cause unexpected results.

Re: Enable/Disable external screen

Posted: 20 Jun 2018, 23:18
by sideshowbond
excellent, thank you. It is a bit awkward but with this I should theoreticaly be able to specifically open windows on screen 1 and then subsequently move them onto 2 :D If what I tried by hand works via macro as well