Jump to content

Eboostr Autoit Script


yocarim

Recommended Posts

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 :blushing:

Link to comment
Share on other sites


Hi yocarim

Your 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 this

ControlClick($title, "Please select a language.", "OK")

or try this

ControlClick($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

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 english
AdlibEnable('_Language')

WinWait($title, 'Welcome to the eBoostr')
ControlClick($title, 'Welcome to the eBoostr', '&Next >')

; disable use of Adlib function
AdlibDisable()

WinWait($title, 'License Agreement')
ControlClick($title, 'License Agreement', 'I &Agree')

; you can finish the code


Exit

Func _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
EndIf
EndFunc

I 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

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