Enable/Disable external screen

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

User avatar
sideshowbond
Posts: 153
Joined: 18 Nov 2016, 20:58

Enable/Disable external screen

Postby sideshowbond » 20 Jun 2018, 22:51

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
User avatar
Gregory
Site Admin
Posts: 1114
Joined: 14 Dec 2007, 15:25
Location: London, United Kingdom
Contact:

Re: Enable/Disable external screen

Postby Gregory » 20 Jun 2018, 23:05

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.
User avatar
sideshowbond
Posts: 153
Joined: 18 Nov 2016, 20:58

Re: Enable/Disable external screen

Postby sideshowbond » 20 Jun 2018, 23:18

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

Who is online

Users browsing this forum: No registered users and 2 guests