coucou Posted October 27, 2006 Share Posted October 27, 2006 Hi,I'm trying to write a script for silent install DivX 6.4 Create BundleHere bellow the complete script for French and English installation. You can notice that i tested to uncheck "Voir des films en DivX" then [Fermer] as the command here bellow, It jammed at the end and wouldn't finish (see image bellow).;ControlCommand("Installation de DivX for Windows", "Installation terminée", "Button4", "UnCheck", "") or ControlClick("Installation de DivX for Windows", "DivX for Windows", "Button4") then ControlClick("Installation de DivX for Windows", "DivX for Windows", "Button2") or ;Send("!f")Any help will be appreciatedcoucou Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted October 27, 2006 Share Posted October 27, 2006 since the button has focus why not just controlsend enter or something Link to comment Share on other sites More sharing options...
coucou Posted October 27, 2006 Author Share Posted October 27, 2006 TNX thatsgreat2345 for yr reply, I don't know much about controlsend, but it seems that function "Sends a string of characters to a control". I can't use {ENTER} directly, because i have to uncheck "Voir des films en DivX" (Button4). I think, AutoIt does not detect that last screenWinWait("Installation de DivX for Windows", "Installation terminée") Anyone can test? Regards coucou Link to comment Share on other sites More sharing options...
MHz Posted October 27, 2006 Share Posted October 27, 2006 Add Opt("TrayIconDebug", 1) to the top of your script and hover your mouse over the systray icon when it stalls so you can see which line it stops at. Link to comment Share on other sites More sharing options...
coucou Posted October 29, 2006 Author Share Posted October 29, 2006 Hi MHz,Sorry for the delay, i was out.I added Opt("TrayIconDebug", 1), the script stop at Line: WinWait("Installation de DivX for Windows", "Abonnez vous")It is the screen just before the one i'm waiting for (see image here above)here a part of the script concerned. You'll find In my first post a the link for the entire script file.;bulletins de DivX WinWait("Installation de DivX for Windows", "Abonnez vous") ControlClick("Installation de DivX for Windows", "Abonnez vous", "Button2") ;FIN WinWait("Installation de DivX for Windows", "DivX for Windows") ;ControlCommand("Installation de DivX for Windows", "Installation terminée", "Button4", "UnCheck", "Installation de DivX for Windows") ControlClick("Installation de DivX for Windows", "Installation terminée", "Button4") sleep(500) ControlClick("Installation de DivX for Windows", "Installation terminée", "Button2") ;Send("!f")Any suggestion be welcomecoucou Link to comment Share on other sites More sharing options...
MHz Posted October 30, 2006 Share Posted October 30, 2006 Hi MHz, Sorry for the delay, i was out. I added Opt("TrayIconDebug", 1), the script stop at Line: WinWait("Installation de DivX for Windows", "Abonnez vous") It is the screen just before the one i'm waiting for (see image here above) here a part of the script concerned. You'll find In my first post a the link for the entire script file. Any suggestion be welcome coucouSince the script stops at the previous window then the one that concerned you, then you may want to use Adlib on the previous window if it does exist during the installation. This altered script may work for you. DivXCreate640_Install.au3 Link to comment Share on other sites More sharing options...
coucou Posted October 30, 2006 Author Share Posted October 30, 2006 (edited) Many TNX MHz for yr help. Unfortunately it doesn't help. In fact, with yr script i got the screen "Abonnez-vous" (or "Sign up" when english language detected) BUT it's jammed with that screen, can't go further. :"> I added Opt("TrayIconDebug", 1)the the systray icon disappear when the software being installed. I found the answer not so neat but it works I noticed, that the "Abonnez-vous" screen appears ONLY when the Internet is enabled. As i'm looking to silent install this software unattended (Internet disabled).... then, i delete the commands of it... Anyway, if you have a better solution, working with or/and without Internet connected... i buy it. Regards coucou Edited October 30, 2006 by coucou Link to comment Share on other sites More sharing options...
MHz Posted October 31, 2006 Share Posted October 31, 2006 Many TNX MHz for yr help. Unfortunately it doesn't help. In fact, with yr script i got the screen "Abonnez-vous" (or "Sign up" when english language detected) BUT it's jammed with that screen, can't go further. :"> I added Opt("TrayIconDebug", 1)the the systray icon disappear when the software being installed. Well, that is a concern if the systray icon disappears. That means that the last WinWait() was passed during the installation somehow. I found the answer not so neat but it works I noticed, that the "Abonnez-vous" screen appears ONLY when the Internet is enabled. As i'm looking to silent install this software unattended (Internet disabled).... then, i delete the commands of it... Anyway, if you have a better solution, working with or/and without Internet connected... i buy it. Regards coucou"Abonnez-vous" is within the Adlib function so should only automate the window if it does appear. Removing it will only mean the script will not function correct when you do have an internet connection while installing. I do not know french well enough to better your attempt. I'll take another try with using a loop to automate the install. Without my testing of this, it may need corrections to make it work well if it even does work. DivXCreate640_Install2.au3 Link to comment Share on other sites More sharing options...
coucou Posted October 31, 2006 Author Share Posted October 31, 2006 WOOOOOOOOOOOOOOOOOOOOOWWWWWWWWWWWWW AWESOME It works Well Done Regards coucou sent you a PM 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