Jump to content
Sign in to follow this  
goodbyeplanet

help with controlclick or control commands

Recommended Posts

goodbyeplanet

i am here doing a simple installation of 7zip. here is my simply code:

run("E:\software\7zip.exe")
;choose Install location
winwaitactive("7-Zip 9.20 Setup")
sleep(100)
;final part finish
WinActive("7-Zip 9.20 Setup","finish")
send ("!f")

what annoys me with the code above is that on some computers it works fine but on others it doesnt even click the finish button but remains hanging. I understand using send is not stable so i have been trying control commands but somehow they are not working. here is what i did with the control commands:

run("E:\software\7zip.exe")

;choose Install location
winwaitactive("7-Zip 9.20 Setup")

ControlClick("7-Zip 9.20 Setup", "Choose Install Location", "&Install >")

sleep(100)

WinActive("7-Zip 9.20 Setup")
ControlClick("7-Zip 9.20 Setup", "Choose Install Location", "&Finish >")

The above is even worse because it doesnt work a bit. Even after revisiting the help file and trying the coordinates I seem to fail dismally as the mouse begins to click every where on my monitor. May anyone help me in doing this script with the control commands that are said to be more stable or even better. thank you.

Share this post


Link to post
Share on other sites
PowerCat

try 7zip.exe /S for silent install

Share this post


Link to post
Share on other sites
goodbyeplanet

thank you that works but since i have 15 different applications does it mean i will have to be doing this for all of them.

Share this post


Link to post
Share on other sites
PowerCat

thank you that works but since i have 15 different applications does it mean i will have to be doing this for all of them.

Well if the manufacturer has included "silent install" capability to its software, you should take advantage of it as much as you can!!

Share this post


Link to post
Share on other sites
goodbyeplanet

Well if the manufacturer has included "silent install" capability to its software, you should take advantage of it as much as you can!!

thank you powercat for your advice. i have google for silent installs on each application I have and surprisingly it seems to work all on a sinle line instead of a series of lines i had. yes i am happy. really appreciate your help.

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  

×