Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Help to change screen resolution

If you have a question or need help, this is the place to be.
Post Reply
regi24
Posts: 3
Joined: Thu Sep 09, 2010 5:44 pm

Help to change screen resolution

Post by regi24 »

I have the TV attached to the PC and I want to change Window's settings in order to enable or disable it on demand.

I'm using system plugin in EG and I can change to the settings that TV is enabled but the settings where the TV is disabled doesn't make a change.

Here is what I do:

To "switch on" TV:

eg.plugins.System.SetDisplayPreset((u'\\\\.\\DISPLAY1', 0, 0, 1680L, 1050L, 59L, 32L, True, True, 0L), (u'\\\\.\\DISPLAY2', -1920, 0, 1920L, 1080L, 60L, 32L, True, False, 0L))


To "switch off" TV:

eg.plugins.System.SetDisplayPreset((u'\\\\.\\DISPLAY1', 0, 0, 1680L, 1050L, 59L, 32L, True, True, 0L), (u'\\\\.\\DISPLAY2', 0, 0, 1680L, 1050L, 59L, 32L, False, False, 0L))


Can anyone help?

Thanks!
Post Reply