MSFN Forum: Make AutoIT Parse Written information - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Make AutoIT Parse Written information Rate Topic: -----

#1 User is offline   Marthax 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 572
  • Joined: 28-April 04

Posted 02 April 2005 - 01:17 PM

Hi Everyone!

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


#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 03 April 2005 - 12:28 AM

Remove the double quotes from the last line.
Send($answer)


Good luck.
;)

#3 User is offline   Marthax 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 572
  • Joined: 28-April 04

Posted 03 April 2005 - 04:21 AM

oh, Thanks :)

One more question. Do you guys know how to do if I have a installation that demands more than 1 cd and I wanna get rid of the cd switching? For example, I extracted Command & Conquer : Generals to my harddisk so that I can use it with my Ua installation but, what will happen when the installation asks for the second disk? How do I solve this?

#4 User is offline   redfive19 

  • Junior
  • Pip
  • Group: Members
  • Posts: 96
  • Joined: 17-August 04

Posted 04 April 2005 - 08:28 PM

You should google how to turn a multi cd game into one dvd. I've done it before but don't have the exact guide. I did it for Doom 3 and it involved using Orca and editing some files. Not simple but not hard.

#5 User is offline   Marthax 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 572
  • Joined: 28-April 04

Posted 05 April 2005 - 09:52 AM

ok, thanks i'll check that out. :)

#6 User is offline   erik_demon 

  • Master Chief
  • PipPip
  • Group: Members
  • Posts: 253
  • Joined: 22-August 04

Posted 05 April 2005 - 04:25 PM

I already created (a very simple) AutoIt script for generals:

You can download it here

As long as you copy all file to the harddrive setup won't ask for the second CD.
If you however install from the CD, setup will ask for it.

For the last one there is also a solution:
Check-out this topic (and the link that I posted)

Good luck!

#7 User is offline   Marthax 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 572
  • Joined: 28-April 04

Posted 05 April 2005 - 04:32 PM

thanks erik demon but, I already downloaded your script :) All I gotta do is to copy all files to one folder and it will work?

#8 User is offline   erik_demon 

  • Master Chief
  • PipPip
  • Group: Members
  • Posts: 253
  • Joined: 22-August 04

Posted 06 April 2005 - 03:30 AM

Yes, as long as you first copy the Generals folder to your harddrive, and than run the script (which should be inside the Generals folder) it should work. If you run it from A CD, generals will ask for CD 2. In that case you can try my second method. (which I use now, because I install from a second harddrive and I have plenty of space. Now I don't even need CD's enymore because I both install, and play games from ISO files)

#9 User is offline   Marthax 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 572
  • Joined: 28-April 04

Posted 06 April 2005 - 01:10 PM

how does your second method look like?

#10 User is offline   erik_demon 

  • Master Chief
  • PipPip
  • Group: Members
  • Posts: 253
  • Joined: 22-August 04

Posted 06 April 2005 - 02:16 PM

This is the script that I use now ;)

Attached File(s)



#11 User is offline   Marthax 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 572
  • Joined: 28-April 04

Posted 07 April 2005 - 04:32 AM

ok thanks. I think I'm gonna go with the first script you created since i'll be installing from the harddrive.

Cheers,

Marthax

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy