Jump to content
Sign in to follow this  
tobject

help with Monitor flip via NVidia Controlpanel??

Recommended Posts

tobject

Need some help with 90 degree monitor rotate via NVidia control

Looks like it sometimes selects wrong Radio option (istead of +90 I get -90 etc)

or maybe someone knows easier way to rotate?

Thanks

#region --- ScriptWriter generated code Start ---
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)

ProcessClose("nvcplui.exe");
Run("nvcplui.exe");

WinWait("NVIDIA Control Panel","")
If Not WinActive("NVIDIA Control Panel","") Then WinActivate("NVIDIA Control Panel","")
WinWaitActive("NVIDIA Control Panel","")
sleep(1250);
   ControlClick("NVIDIA Control Panel", "", "[CLASS:TaskLink32; INSTANCE:7]");
sleep(250);
   ControlClick("NVIDIA Control Panel", "","[CLASS:Button; INSTANCE:7]");
sleep(250);
   ControlClick("NVIDIA Control Panel", "","[CLASS:Button; INSTANCE:12]");



MsgBox(0,"Finished","Process Done",5);
Edited by tobject

Share this post


Link to post
Share on other sites
BrettF

Share this post


Link to post
Share on other sites
tobject

nope it did not

thank to the try though

Share this post


Link to post
Share on other sites
picaxe

RotateDisplay() ; rotate 90 deg
Sleep(3000)
RotateDisplay(1, 0) ; restore

Func RotateDisplay($iDisplayNumber = 1, $iRotate = 90)
    Run("rundll32.exe NvCpl.dll,dtcfg rotate " & $iDisplayNumber & " " & $iRotate)
    If @error Then Return SetError(1, 0, 0)
EndFunc

Share this post


Link to post
Share on other sites
tobject

Thanks! works like a charm! :mellow:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.