Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change display settings
#1
Hello,

Is there a way in win7 to obtain
right click-> screen resolution->show desktop only on 1
without showing the settings screen.
That is to get the result without the steps.

Thank you
#2
https://msdn.microsoft.com/en-us/librar ... 85%29.aspx

Macro set display config
Code:
Copy      Help
def SDC_TOPOLOGY_INTERNAL 0x00000001
def SDC_TOPOLOGY_EXTERNAL 0x00000008
def SDC_TOPOLOGY_CLONE 0x00000002
def SDC_TOPOLOGY_EXTEND 0x00000004
def SDC_APPLY 0x00000080
dll user32 [SetDisplayConfig]#SetDisplayConfig_58912 numPathArrayElements !*pathArray numModeInfoArrayElements !*modeInfoArray flags

int f
sel ListDialog("Internal[]External[]Clone[]Extend")
,case 1 f=SDC_TOPOLOGY_INTERNAL
,case 2 f=SDC_TOPOLOGY_EXTERNAL
,case 3 f=SDC_TOPOLOGY_CLONE
,case 4 f=SDC_TOPOLOGY_EXTEND
,case else ret

int R=SetDisplayConfig_58912(0 0 0 0 f|SDC_APPLY)
if(R) out F"failed: {R}"
#3
unknown identifier: ListDialog
Should I move to the new version of QM?
#4
In old QM replace ListDialog with list.
#5
unknown identifier: SDC_APPLY
or without SDC_APPLY (int R=SetDisplayConfig_58912(0 0 0 0 f))
failed: 87
#6
def SDC_APPLY 0x00000080 was missing in the code. Now added.
#7
Great
Thanks


Forum Jump:


Users browsing this thread: 1 Guest(s)