MSFN Forum: autoit script - 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

autoit script Rate Topic: -----

#1 User is offline   bobthenob 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 25-November 05

Posted 17 December 2005 - 03:30 AM

hi im new to autoit
but im trying to learn (looked at a ot of scripts on this forum)
im trying to install nero but when i get to the licence agrement screen

Posted Image
i cant seem to move to the i agree radio button
heres my script sofar
; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template AutoIt script.
;
; ----------------------------------------------------------------------------

; Script Start - Add your code below here

run ("Nero.exe")

winwaitActive("Nero Burning ROM Installation Wizard")
Send("{enter}")

winwaitActive("Nero Burning ROM Installation Wizard")
send ("Nero Burning ROM Installation Wizard",1027)

Send("{enter}")
hers the autoit window info
Posted Image
thanks inadvance

This post has been edited by bobthenob: 17 December 2005 - 03:34 AM



#2 User is offline   MHz 

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

Posted 17 December 2005 - 04:02 AM

Using Send() is just emulating the keyboard. I think it is the Tab key and Arrow up key to switch radio buttons for Nero. Try it manually with the keyboard to check.
Send('{TAB}{UP}')

This post has been edited by MHz: 17 December 2005 - 04:03 AM


#3 User is offline   bobthenob 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 25-November 05

Posted 17 December 2005 - 04:13 AM

Thanks MHz
that works great
Autoit is great if you no what your doinig
Ill continue on and see how i get on thanks again

great works a treat now just have to wor out how to put in the serial code
heres my sript
; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template AutoIt script.
;
; ----------------------------------------------------------------------------

; Script Start - Add your code below here

run ("Nero.exe")

winwaitActive("Nero Burning ROM Installation Wizard")
Send("{enter}")

winwaitActive("Nero Burning ROM Installation Wizard")

Send('{TAB}{UP}')

Send("{enter}")
winwaitActive("Nero Burning ROM Installation Wizard")
Send("{enter}")

winwaitActive("Nero Burning ROM Installation Wizard")
Send("{enter}")
Exit

This post has been edited by bobthenob: 17 December 2005 - 04:47 AM


#4 User is offline   bobthenob 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 25-November 05

Posted 18 December 2005 - 07:11 AM

hi just thought id post that ive got this working
probaly not the best script but it works so thatll do for now
thanks to MHz
heres my script ive removed my serial
it installs nero the runs it puts in serial then closes

run ("Nero.exe")

winwaitActive("Nero Burning ROM Installation Wizard")
Send("{enter}")

winwaitActive("Nero Burning ROM Installation Wizard")

Send('{TAB}{UP}')

Send("{enter}")
winwaitActive("Nero Burning ROM Installation Wizard")
Send("{enter}")

winwaitActive ("Nero Burning ROM Installation Wizard")
Send("{enter}")

winwaitActive("Nero Burning ROM Installation Wizard","The Wizard has completed")
Send("{enter}")


Run("C:\Program Files\Ahead\Nero\nero.exe")
winwaitActive("Nero Burning ROM","Please personalize your copy of Nero")
Send('{tab}')
Send('{tab}')
send("serial-number")
send('{Enter}')


WinWaitActive ("New Compilation")
Send('{tab}')
Send('{tab}')
Send('{tab}')
Send('{tab}')
send('{Enter}')

WinWaitActive ("Nero Burning ROM")
Send('{ALT}')
Send('{Down}')
Send('{Up}')
send('{Enter}')
Exit

#5 User is offline   MHz 

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

Posted 18 December 2005 - 08:28 AM

Very good bobthenob.

Just some tips.

This line is hard coded to only C: drive.

View Postbobthenob, on Dec 18 2005, 11:11 PM, said:

Run("C:\Program Files\Ahead\Nero\nero.exe")

Use macros to improve chances if Program Files is else where.
Run(@ProgramFilesDir & "\Ahead\Nero\nero.exe")


A little optimize trick for you. Your code below can be made easier.

View Postbobthenob, on Dec 18 2005, 11:11 PM, said:

WinWaitActive ("New Compilation")
Send('{tab}')
Send('{tab}')
Send('{tab}')
Send('{tab}')
send('{Enter}')

It can be transformed into this:
WinWaitActive ("New Compilation")
Send('{tab 4}{Enter}')

They both do the same but the change is only 2 lines without the extra repetition. The Send() page in the helpfile has a number of tricks to learn. :)

#6 User is offline   bobthenob 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 25-November 05

Posted 18 December 2005 - 02:16 PM

Cheers Mhz
Ill take your advise and alter my script thanks again
I did look at the Send() page
I wish there were more egsamples like the winzip install tutorial
I like to try things rather than keep asking for help you learn by your mistakes that way.
I taught my self Studiomax from just following tutorials and reading up

Posted Image

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