Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sytem propities (window+pause)
#1
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.
#2

'(92)
Taking on Quick Macros one day at a time
#3
thank you
#4

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
#5
Is there an easier way so i dont have any issues with it. thank you


Code:
Copy      Help
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")
#6

Is this just to change your appearance style?
Taking on Quick Macros one day at a time
#7
its to change the computer performance, so its not using any visual effects.
#8

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
#9
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.
#10
ok theres to much for me to work out at that link. if any one can help thank you.
#11
Try this,

Code:
Copy      Help
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")


Forum Jump:


Users browsing this thread: 1 Guest(s)