I've been working a lot with AutoIT lately and recently I experimented with the "InputBox" command. It worked but, when I enter something in the box that pops up, I want it to be parsed so that it can be used by the rest of the script later on. For example, I did an UA installation using AutoIT for ZipGenius that would pop up an input box when you were supposed to enter the installation directory but, I can't seem to make the script parse the directory that i enter so that it uses this to input it as the installation folder. I've come this far:
Run ("zg551std.exe")
WinWaitActive("Select Setup Language")
Send("{ENTER}")
WinWaitActive("Setup - ZipGenius", "This will install ZipGenius")
Send("!n")
WinWaitActive("Setup - ZipGenius", "Please read the following important information before continuing")
ControlClick("", "Please read the following important information before continuing", "TRadioButton1")
Send("!n")
WinWaitActive("Setup", "License Clause Explicit Confirmation")
Send("{ENTER}")
WinWaitActive("Setup - ZipGenius", "Select Destination Location")
$answer = InputBox("Install Destination", "Enter A Install Destination for ZipGenius", "C:\Program\ZipGenius 5")
Send("$answer")
Any ideas?
Thanks in advance!
Marthax



Help

Back to top









