Jump to content

Recommended Posts

Posted (edited)

i made an autoit script for norton ghost 12 and it works fine sometimes and other times it seems like it miss types or the timing is off or something can anyone tell me why?

also i would like to automatically initiate my lmhosts file during install but have no clue how i figure just put it in the i386 folder with the lmhosts.sam file but im not sure if that would copy it over or not and if it does will windows automatically read that lmhosts file

here is my ghost12 script

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('C:\WinXE\NGhost12Install\SETUP.EXE')
WinWait("Norton Ghost - InstallShield Wizard","")
If Not WinActive("Norton Ghost - InstallShield Wizard","") Then WinActivate("Norton Ghost - InstallShield Wizard","")
WinWaitActive("Norton Ghost - InstallShield Wizard","")
Sleep("5000")
AutoItSetOption("SendKeyDelay", 400)
Send("{ENTER}")
Send("a")
Send("n")
Send("n")
Send("s")
Send("n")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{SPACE}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{ENTER}")
Send("{ENTER}")
Send("i")
Sleep(70000)
Send("{TAB}")
Send("{SPACE}")
Send("f")
WinWait("Norton Ghost Installer Information","")
If Not WinActive("Norton Ghost Installer Information","") Then WinActivate("Norton Ghost Installer Information","")
WinWaitActive("Norton Ghost Installer Information","")
Send("n")
$SF_1 = "SETUP.EXE"

If WinExists ( $SF_1 ) Then Exit
AutoItWinSetTitle ( $SF_1)

thx ahead of time for the help

also sorry if this is the wrong section to ask this

Edited by sadisticopiate

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...