tobject Posted June 26, 2010 Share Posted June 26, 2010 (edited) 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 June 26, 2010 by tobject Link to comment Share on other sites More sharing options...
BrettF Posted June 26, 2010 Share Posted June 26, 2010 Some seem to think this works? invert = ctrl+alt+down arrow normal = ctrl+alt+up arrow Whether or not it works for you I don't know Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
tobject Posted June 27, 2010 Author Share Posted June 27, 2010 nope it did not thank to the try though Link to comment Share on other sites More sharing options...
picaxe Posted June 27, 2010 Share Posted June 27, 2010 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 Link to comment Share on other sites More sharing options...
tobject Posted June 28, 2010 Author Share Posted June 28, 2010 Thanks! works like a charm! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now