Jump to content
Sign in to follow this  
bevtech

Basic 7zip installation script

Recommended Posts

bevtech

I am just learning to script so bear with me;)

I am having an issue with control click I am sure I am doing something stupid

Run("7z442.exe")

; First window of installation
WinActivate ("7-zip 4.42 Setup");Need to set focus on the active window
ControlClick("7-zip 4.42 Setup", "", "[ID:1]"); Left click on the install button
;ControlClick("7-zip 4.42 Setup", "", "[CLASS:Button; TEXT:Install; INSTANCE:2]"); Left click on the install button

Do i have to specify with mouse button or add a parameter somewhere?

Please give me a correct example so i can understand how this command functions :)

Thank you for your time..;)

Share this post


Link to post
Share on other sites
Uten

Don't the 7-zip installer have a quiet mode? Take a look in the autoit folder and see if you find a fodler called ScriptWriter or a tool called au3record.exe or scriptwriter.exe

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.