How can I script nvidia display setting changes?

2,444

Combined with AutoIT, AutoHotkey or a batch script, this PDF-document (Command Line Functions => Using DTCFG-Configuring the Desktop => DTCFG Desktop Configuration Commands) may be of great assistance.

From that I tried to create a simple AutoHotkey-script, but I am not sure if it works, nor if it does what you want.

single = 1
;----- Ctrl-F2, change to whatever you see fit
^F2::
;----- cloning to screen 2
if (single = 1) {
    run rundll32.exe NvCpl.dll`,dtcfg setview 1 clone,,Hide
    single = 0
} else {
;----- back to primary only
     run rundll32.exe NvCpl.dll`,dtcfg setview 1 standard,,Hide
     currentMode = 2
}
return
Share:
2,444

Related videos on Youtube

Nick Franceschina
Author by

Nick Franceschina

Updated on September 17, 2022

Comments

  • Nick Franceschina
    Nick Franceschina over 1 year

    I don't know what's going on here... but the Microsoft.Win32.Registry class is returning all kinds of strange stuff. When I say GetSubKeys it returns a bunch of things that aren't there in regedit (for example, I call Registry.LocalMachine.OpenSubKey("SOFTWARE").SubKeyCount and it returns "81"... but there are only 30 keys when I view it using regedit)

    when I try to get the value of something it always returns null.

    I have gone through the registry and set permissions on various keys to everyone:full just to test, but still nothing.

    am I missing something? I did just upgrade to Windows7 Ultimate from a Vista Ultimate machine...

    ??

    • JamesGecko
      JamesGecko almost 15 years
      I wish ATi's monitor switching was that streamlined. They make you pull up a five step wizard.
  • Nick Franceschina
    Nick Franceschina over 14 years
    there's no writing, only reading. So I don't understand... even if I try and explicitly say "I'm only reading this"... I still don't see the keys that are there in regedit. is it not supposed to show a "merged view": msdn.microsoft.com/en-us/library/aa965884(VS.85).aspx
  • Ken White
    Ken White over 14 years
    You should accept this as your answer. You won't gain any reputation by doing so, but it'll let others know you've got a solution.