Jump to content

Recommended Posts


Posted
nice find, i'll test it out in the morning
Ah, finally morning has come (after 14 days!) :lol:

(just kidding.... no offense meant)

hehe yeah

i had other stuff to do and got caught up with it

anyways, it's not really working for me

maybe i got the wrong version?

Posted

It doesn't work for you... in what sense?

Does the EXE run? You mean to say the scripts it makes is not proper? Or something else is wrong with it?

Posted

yeah, the exe runs, i record all the buttons, but the scripts it writes dont work and i see it in the scripting too

lemme see if i can dig a script up

here's the script it wrote for outpost firewall

Opt("WinWaitDelay", 400)
Run ("OutpostProInstall.exe{ENTER}{ENTER}")
Opt("MouseCoordMode",0)
WinActivate("License Agreement for Outpost Firewall 2.5","I Disagree")
WinWaitActive("License Agreement for Outpost Firewall 2.5","I Disagree")
Send("{UP}{UP}{UP}{ENTER}{ENTER}{ENTER}{ENTER}{ENTER}{ENTER}{ENTER}")
WinActivate("Install","This system must be ")
WinWaitActive("Install","This system must be ")
Send("{ESC}")

Posted

I see... I made my first script for MS AntiSpyware if I want to install this from cd what would be the correct path for the AntiSpyware.exe in the actual script?

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('C:\AntiSpyware.exe')
WinWait("Microsoft AntiSpyware","WARNING: This comput")
If Not WinActive("Microsoft AntiSpyware","WARNING: This comput") Then WinActivate("Microsoft AntiSpyware","WARNING: This comput")
WinWaitActive("Microsoft AntiSpyware","WARNING: This comput")
Send("{TAB}{TAB}{ENTER}")
WinWait("Microsoft AntiSpyware","I &do not accept the")
If Not WinActive("Microsoft AntiSpyware","I &do not accept the") Then WinActivate("Microsoft AntiSpyware","I &do not accept the")
WinWaitActive("Microsoft AntiSpyware","I &do not accept the")
Send("{UP}{ENTER}")
WinWait("Microsoft AntiSpyware","Click Next to instal")
If Not WinActive("Microsoft AntiSpyware","Click Next to instal") Then WinActivate("Microsoft AntiSpyware","Click Next to instal")
WinWaitActive("Microsoft AntiSpyware","Click Next to instal")
Send("{ENTER}")
WinWait("Microsoft AntiSpyware","The wizard is ready ")
If Not WinActive("Microsoft AntiSpyware","The wizard is ready ") Then WinActivate("Microsoft AntiSpyware","The wizard is ready ")
WinWaitActive("Microsoft AntiSpyware","The wizard is ready ")
Send("{ENTER}")
WinWait("Microsoft AntiSpyware","The installation wiz")
If Not WinActive("Microsoft AntiSpyware","The installation wiz") Then WinActivate("Microsoft AntiSpyware","The installation wiz")
WinWaitActive("Microsoft AntiSpyware","The installation wiz")
Send("{ENTER}")

Posted

As your script would be "%systemdrive%" that would UA install to your "C Drive" if thats the path you use of course. Bear in mind you would not call your Autoit script.exe the same name as your program eg AntiSpyware.exe as Autoit automates this install. I know its probably a little confusing have a good look at the UA guides in MSFN & the Autoit site attached to my sig when your a bit more familar. Ive been working on my UA & Multiboot creations for nearly two years & no where proficient as some dudes round here,but learning everyday. :yes:

Posted
I see...  I made my first script for MS AntiSpyware if I want to install this from cd what would be the correct path for the AntiSpyware.exe in the actual script?

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('C:\AntiSpyware.exe')
WinWait("Microsoft AntiSpyware","WARNING: This comput")
If Not WinActive("Microsoft AntiSpyware","WARNING: This comput") Then WinActivate("Microsoft AntiSpyware","WARNING: This comput")
WinWaitActive("Microsoft AntiSpyware","WARNING: This comput")
Send("{TAB}{TAB}{ENTER}")
WinWait("Microsoft AntiSpyware","I &do not accept the")
If Not WinActive("Microsoft AntiSpyware","I &do not accept the") Then WinActivate("Microsoft AntiSpyware","I &do not accept the")
WinWaitActive("Microsoft AntiSpyware","I &do not accept the")
Send("{UP}{ENTER}")
WinWait("Microsoft AntiSpyware","Click Next to instal")
If Not WinActive("Microsoft AntiSpyware","Click Next to instal") Then WinActivate("Microsoft AntiSpyware","Click Next to instal")
WinWaitActive("Microsoft AntiSpyware","Click Next to instal")
Send("{ENTER}")
WinWait("Microsoft AntiSpyware","The wizard is ready ")
If Not WinActive("Microsoft AntiSpyware","The wizard is ready ") Then WinActivate("Microsoft AntiSpyware","The wizard is ready ")
WinWaitActive("Microsoft AntiSpyware","The wizard is ready ")
Send("{ENTER}")
WinWait("Microsoft AntiSpyware","The installation wiz")
If Not WinActive("Microsoft AntiSpyware","The installation wiz") Then WinActivate("Microsoft AntiSpyware","The installation wiz")
WinWaitActive("Microsoft AntiSpyware","The installation wiz")
Send("{ENTER}")

did you make that with the script maker?

also, when i try to run a scrip that i have made with it, i get an error similar to this

http://img2.imagevenue.com/loc2/_error.gif

Posted

You can't use %Systemdrive% in an autoitscript.

Try something like:

$var = EnvGet("systemdrive")
Run ($Var & "\MyProg.exe")

Or use a directory macro:

Run (@HomeDrive & "\MyProg.exe")

See the help file of autoit for more info.

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