bobthenob Posted December 17, 2005 Share Posted December 17, 2005 (edited) 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 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 hererun ("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 infothanks inadvance Edited December 17, 2005 by bobthenob Link to comment Share on other sites More sharing options...
MHz Posted December 17, 2005 Share Posted December 17, 2005 (edited) 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}') Edited December 17, 2005 by MHz Link to comment Share on other sites More sharing options...
bobthenob Posted December 17, 2005 Author Share Posted December 17, 2005 (edited) Thanks MHzthat works great Autoit is great if you no what your doinigIll continue on and see how i get on thanks againgreat works a treat now just have to wor out how to put in the serial codeheres 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 hererun ("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 Edited December 17, 2005 by bobthenob Link to comment Share on other sites More sharing options...
bobthenob Posted December 18, 2005 Author Share Posted December 18, 2005 hi just thought id post that ive got this working probaly not the best script but it works so thatll do for nowthanks to MHzheres 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 Link to comment Share on other sites More sharing options...
MHz Posted December 18, 2005 Share Posted December 18, 2005 Very good bobthenob.Just some tips.This line is hard coded to only C: drive.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.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. Link to comment Share on other sites More sharing options...
bobthenob Posted December 18, 2005 Author Share Posted December 18, 2005 Cheers MhzIll take your advise and alter my script thanks againI did look at the Send() pageI wish there were more egsamples like the winzip install tutorialI 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now