01-24-2008, 03:56 AM
Try this,
key (92)G
wait 20 WC win("System Properties" "#32770")
Acc a=acc("Advanced" "PAGETAB" win("System Properties" "#32770") "SysTabControl32" "" 0x1001)
a.DoDefaultAction
wait 20 WV child(110 "&Settings" "Button" win("System Properties" "#32770") 0x9 337 146)
but+ id(110 "System Properties")
wait 20 WC id(2023 win("Performance Options" "#32770"))
but+ id(2021 "Performance Options")
but+ id(2023 "Performance Options")
but+ id(12321 "Performance Options")
wait 0 -WE id(12321 "Performance Options");; waits for the button to be disabled
wait 20 WC id(1 win("Performance Options" "#32770"))
but+ id(1 "Performance Options")
wait 20 WC child(1 "OK" "Button" win("System Properties" "#32770") 0x9 207 435)
but+ id(1 "System Properties")