Jump to content

winxp - Power Options


Read
 Share

Recommended Posts

Run("RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl")

WinWait("Power Options Properties")

WinActivate("Power Options Properties")

Send("^{TAB 1}")

Send("{TAB 2}")

Send("{-}")

ControlClick("Power Options Properties", "OK", "Button4")

I can't select "do nothing" in Advance and OK

Whats is the problem?

Link to comment
Share on other sites

Run("RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl")

WinWait("Power Options Properties")

WinActivate("Power Options Properties")

Send("^{TAB 1}")

Send("{TAB 2}")

Send("{-}")

ControlClick("Power Options Properties", "OK", "Button4")

I can't select "do nothing" in Advance and OK

Whats is the problem?

Try This:

Run("RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl")
WinWait("Power Options Properties")
WinActivate("Power Options Properties")
Send("^{TAB 1}")
Send("{TAB 2}")
Send("{-}")
Send ("{Up 3}")
Send ("{Tab 2}{ENTER}")

Not really sure why it wouldn't click the ok button but this works.

Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Link to comment
Share on other sites

Hmm

Now i try disable "system Restore"

Control Panel -> System -> System Restore

checkbox Turn off System Restore on all drivers and OK

Run("control.exe sysdm.cpl,,4")
Send("^{TAB 1}")
Send("^{SPACE}")
Send("^{EnTER}")

As it should be but something is wrong.

It's really hard to help me??? what is wrong this code? Edited by Read
Link to comment
Share on other sites

Run("control.exe sysdm.cpl,,4")
WinWaitActive("[CLASS:#32770]")  ;german WinXP32, use AutoIt Window Info Tool for more informations
sleep(2000)  ;only to show that it works
Send("^{SPACE}")
sleep(2000)  ;only to show that it works
Send("^{EnTER}")
sleep(2000)  ;only to show that it works
exit

/EDIT/ ....c&p error....

Edited by AndyG
Link to comment
Share on other sites

Run("control.exe sysdm.cpl,,4")
WinWaitActive("[CLASS:#32770]")  ;german WinXP32, use AutoIt Window Info Tool for more informations
sleep(2000)  ;only to show that it works
Send("^{SPACE}")
sleep(2000)  ;only to show that it works
Send("^{EnTER}")
sleep(2000)  ;only to show that it works
exit

/EDIT/ ....c&p error....

How or where you take it?: [CLASS:#32770]")

It's work - Thanks

Edited by Read
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...