in reply to Re^4: Need to modify windows system file.
in thread Need to modify windows system file.

Win32::GuiTest has SendKeys.

Personally, I would make such setting changes through system policies. I presume there is a kit that creates and distributes these policies. This is far less fragile than trying to keep up with a changing UI and sending keystrokes to manipulate it.

Also, when automating by sending keystrokes, I found it much less fragile to send ALT+... codes to trigger the hotkeys for each option instead of tabbing through the options.

Replies are listed 'Best First'.
Re^6: Need to modify windows system file.
by SriniK (Beadle) on May 13, 2011 at 10:21 UTC
    Hi,
    Because of Sendkey only the vb script not working.
    I am restricted i should not modify the Group policy. I have tried using registry but it's not working. I want to run the script over no of system that's why i need that.
      What do you mean by "not working"?
        It's working fine in normal environment.

        My requirement is when i am installing windows the script should run. At that time because of send key it is not working.

        I am expecting a script that not have send keys at least in vb script as it is not working already.

        That's why i want a real script not like keyboard macro.

      Hi, group policy is designed exactly for your purpose: automatically change settings for a number of machines. Even I find it very strange not to modify group policy some specific cause may exist to do so. In this case you should look for registry settings responsible for the specific task and change it. In most cases registry modification of system settings require a system reboot, maybe this is why it "doesn't work" for you. It looks like you are installing the system from scratch so one more or less reboot should make no difference. A number of websites describe lot of different registry settings try google for "windows unattended"

      Take care if you change windows registry, if at some latter point you decide this changes don't fit your requirements anymore you need to adapt all systems again. Using a group policy you just need to change/remove a policy.