Jump to content

Can Autoit fill in user input keys?


guiron

Recommended Posts

I'm still trying to install MsWorks 4.5 unattended without any luck so i took a look at AutoIt....I was able to write a script that when I type msworks setup.exe at the command prompt the first setup window appears, ie..C:\xpcd\$oem$\$1\install\applications\msworks\setup.exe.....then i can click on my AutoIt exe file i made (on my desktop) and it will fill in all the info and install msworks fine....The problem is I cant seem to this without first starting msworks setup.exe first then clicking on my AutoIt exe...Is it possible to make them work together via a batch file or something? Or am i going about this completely wrong?

Link to comment
Share on other sites


The only thing you have to add to your AutoIt script is something like this:

Run("MsWorksSetup.exe")WinWait("MsWorks Setup window title")... Send Keys or whatever...

Use the AutoItSpy to get the window title of the setup.

Link to comment
Share on other sites

Zoster, thank you so much... iv'e been struggling with trying to install Msworks unattended for days now...and for anyone who needs the script i used to install MsWorks 4.5 here it is...just covert it to a .exe and place it the Msworks folder and have your guirunonce say something like

echo

echo installing MsWorks 4.5

start /wait %systemdrive%\Install\Applications\MsWorks\(the name of your AutoIt).exe

echo Installation Complete!

the script.....

Run,Setup.exe

WinWait,Microsoft Works 4.5 Setup

send,{enter}

send,{del 8}

send,xxxxxx (x's=your name)

send,{tab}

send,{del 8}

send,None

send,{enter 2}

send,XXXXXXXXXXXXXXXXX (x's where the activation code is..no spaces)

send,{enter 2}

sleep,5000

send,{enter}

sleep,5000

send,{enter}

sleep,2000

send,{enter}

sleep,50000

send,{enter}

Link to comment
Share on other sites

oops.... where it says:

send,None

the None designates your organization, so put what ever you want

also at the...

send,{del 8}

this is just clearing whatever may be in the field already so if your organization name is more than 8 characters then just change the 8 to 20 or whatever

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...