fusion400 Posted November 28, 2010 Share Posted November 28, 2010 (edited) Hello i am wondering if there is any way to make this script more robust. What it does is that it starts on Desktops & Display screen in Catalyst Control Center. Then it tabs all the way to the Graphics menu and then presses down 2 times and then enter to select Desktop Properties. On Desktop Properties it selects the first monitor and then reactivates ati color controls after that it changes gamma, brightness and contrast settings and presses ok. I want to make it more robust so it can't fail even though something happens in the background so it loses focus or some other program or window pops up that makes it impossible for the script to be successfull or someones tries to control the mouse or keyboard at the time the script is executed. Opt("SendKeyDelay",400) Run("ccc.exe") sLEEP(6000) WinWaitActive("CATALYST") send("{TAB 11}") Send("{ENTER}") Send("{DOWN 2}") Send("{ENTER}") ;next window comes up that has mode and color buttons. sLEEP(3000) WinWaitActive("CATALYST") Send("{TAB}") Send("{UP}") Send("{RIGHT}") Send("{TAB 3}") Send("{R}") ; Reactivate ati color controls WinWaitActive("CATALYST") Send("{TAB}") Send("{UP 3}") Send("{TAB 3}") send("{UP 15}") Send("{TAB 3}") send("{UP 15}") Send("{TAB 4}") Send("{ENTER}") Edited November 28, 2010 by fusion400 Link to comment Share on other sites More sharing options...
JohnOne Posted November 28, 2010 Share Posted November 28, 2010 I dont know what that is, but maybe the exe has some command line options you might want to look into. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
fusion400 Posted November 28, 2010 Author Share Posted November 28, 2010 I dont know what that is, but maybe the exe has some command line options you might want to look into.No that was my first thought of trying to automate it through simple cmd line options or the registry.But none worked this was the only way but i want to make it failsafe now. Link to comment Share on other sites More sharing options...
Realm Posted November 28, 2010 Share Posted November 28, 2010 Hello fusion400,If you can't find command line options try looking into functions ControlSend(), ControlCommand(), ControlClick(), & ControlFocus(). There are handful of other useful Control Functions that may be better to use depending on th situation, and the Help file is well documented with examples on these functions.Realm My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. Link to comment Share on other sites More sharing options...
fusion400 Posted November 28, 2010 Author Share Posted November 28, 2010 ok i have tried to find all the controls but i run into trouble with the menu i just can't get identification of specific menu row. Is there any way to get this information the autoit window info can't seem to get the info. I have included screenshot as an attached file. 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