Posts: 229
Threads: 22
Joined: Sep 2007
im trying to get the system propities using key.
i can get it to press pause (key G)
and cannot get it to press the window key on the keyboard. thanks for any help.
Posts: 473
Threads: 33
Joined: Aug 2007
'(92)
Taking on Quick Macros one day at a time
Posts: 229
Threads: 22
Joined: Sep 2007
Posts: 473
Threads: 33
Joined: Aug 2007
No problem, incase you were wondering, I got that by using the record option and simply hitting the windows key. This might help you for further questions involving keys.
Taking on Quick Macros one day at a time
Posts: 229
Threads: 22
Joined: Sep 2007
Is there an easier way so i dont have any issues with it. thank you
key (92)G
wait 20 WC win("System Properties" "#32770")
Acc a=acc("Advanced" "PAGETAB" win("System Properties" "#32770") "SysTabControl32" "" 0x1001)
a.Mouse(1)
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")
4
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")
Posts: 473
Threads: 33
Joined: Aug 2007
Is this just to change your appearance style?
Taking on Quick Macros one day at a time
Posts: 229
Threads: 22
Joined: Sep 2007
its to change the computer performance, so its not using any visual effects.
Posts: 473
Threads: 33
Joined: Aug 2007
I'm sure there is always a faster way. If you want to look further into finding a faster way, i'm sure you can look through the MSDN library. http://msdn2.microsoft.com/en-us/library/ms724829
Taking on Quick Macros one day at a time
Posts: 229
Threads: 22
Joined: Sep 2007
i dont need it to be fast, just reliable to do what i want it to do, with the way i have the code most of the time it will miss to hit the OK button on Sytem Properties. thank you for your help and i will take a look at the link.
Posts: 229
Threads: 22
Joined: Sep 2007
ok theres to much for me to work out at that link. if any one can help thank you.
Posts: 576
Threads: 97
Joined: Aug 2007
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")