yocarim Posted November 26, 2008 Share Posted November 26, 2008 Hi, anyone have the script for eboostr, i try to make one, but i don´t know what is wrong, the script dont pass the frist selection of the program.this is the only i write for the script$title = "Setup - Eboostr"Run("eBoostr.exe")WinWait($title, "Installer Language")ControlClick($title, "Please select a language.", "OK", "button1")If somebody got the script for this program please send me. Or can anyone help me, thx.Sorry for my english Link to comment Share on other sites More sharing options...
MHz Posted November 26, 2008 Share Posted November 26, 2008 Hi yocarimYour code seems OK up to the ControlClick function. The parameters of ControlClick is shown below and I will describe the parameters of concern.ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] )You seem to have the "title" and "text" parameters correct. The controlID can be the text of the control such as being "OK", or can be the ClassnameNN such as being "Button1" (ensure text case is correct) or if needed advanced uses such as class, handle and so on. The "button" parameter can only be "", "left", "middle", "right", "primary", "main", "secondary" or "menu" thus your value used seems incorrect.Perhaps try thisControlClick($title, "Please select a language.", "OK")or try thisControlClick($title, "Please select a language.", "Button1")I would not use the optional parameters unless you absolutely need to use them. Link to comment Share on other sites More sharing options...
yocarim Posted November 26, 2008 Author Share Posted November 26, 2008 Thx MHzI try but dont work, maybe the problem is the installer have a combo box for the lenguage, but the lenguage is automatic detected.And the autoit windows info show that:I dont know what i can do Link to comment Share on other sites More sharing options...
Geej Posted November 26, 2008 Share Posted November 26, 2008 Try replace 3rd & 4th line code with this:WinWaitActive ("Installer Language", "Please select a language.")ControlClick("Installer Language", "Please select a language.", "OK") Link to comment Share on other sites More sharing options...
MHz Posted November 26, 2008 Share Posted November 26, 2008 This example is based off the beta installer so text maybe different but same conditions should apply.#RequireAdmin$title = 'eBoostr 3.0 (BETA) Setup'Run("eBoostr.exe"); handle the language window if appears and choose englishAdlibEnable('_Language')WinWait($title, 'Welcome to the eBoostr')ControlClick($title, 'Welcome to the eBoostr', '&Next >'); disable use of Adlib functionAdlibDisable()WinWait($title, 'License Agreement')ControlClick($title, 'License Agreement', 'I &Agree'); you can finish the codeExitFunc _Language() If WinExists('Installer Language', 'Please select a language') Then ControlCommand('Installer Language', 'Please select a language', 'ComboBox1', 'SelectString', 'English') If StringInStr(WinGetText('Installer Language', 'Please select a language'), 'English') Then ControlClick('Installer Language', 'Please select a language', 'OK') EndIf EndIfEndFuncI used #RequireAdmin as UAC in Vista requires it to allow automation to happen. The script is incomplete but it handles the 1st 3 windows and you can complete it if you wish. 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