Jump to content

Change to Best Performance


Go to solution Solved by JLogan3o13,

Recommended Posts

Hello!

I ran across this code on the forum by JLogan3o13 (older post, didn't want to resurrect) as well as on a blog. I am trying to do the same thing, change my windows properties to Best Performance, but in Windows 7. I believe this code works best for XP. When I test the code it will bring up the System Properties Dialog box on the correct tab, but it won't click on the "Settings..." button.

I don't want to change registry values manually. In this case I want to go through the system properties box.

Am I correct in thinking that Windows 7 handles it a bit differently and that is why it won't select the "Settings..." button?

Thanks!

GR

 

Opt("WinTitleMatchMode", 4)

Run("control sysdm.cpl,,3")

WinWaitActive("classname=#32770")
$handle = WinGetHandle("active")
ControlClick("","","Button2")

WinWaitActive("classname=#32770")
ControlClick("","","Button3")

ControlClick("","","Button5")

WinWaitActive("handle="&$handle)
ControlClick("","","Button9")

[u]Forum Rules[/u]

Follow the rules or be b*t**slapped into next week.

Link to comment
Share on other sites

  • Moderators
  • Solution

Hi, GrinReaper. For Win7, you need to add #RequireAdmin at the top of the script.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...