Jump to content

Control click


au3scr
 Share

Recommended Posts

Hi, i need help with control click.

I cant find how i can click on Next buttoin in OOo setup

Posted Image

here is a information about button and window

>>>> Window <<<<

Title: OpenOffice.org 2.3 - Installation Wizard

Class: MsiDialogCloseClass

Position: 365, 493

Size: 504, 379

Style: 0x14C80000

ExStyle: 0x00040100

>>>> Control <<<<

Class: Button

Instance: 5

ClassnameNN: Button5

ID: 4756

Text: &Next >

Position: 306, 324

Size: 88, 22

ControlClick Coords: 58, 11

Style: 0x50032001

ExStyle: 0x00000000

>>>> Mouse <<<<

Position: 732, 850

Cursor ID: 2

Color: 0xD4D0C8

>>>> StatusBar <<<<

>>>> Visible Text <<<<

sdkf

&Organization:

&Anyone who uses this computer (all users)

Only for &me (sdkf)

< &Back

&Next >

Cancel

&User Name:

BannerBmp

OpenOffice.org 2.3

OpenOffice.org 2.3

Please enter your information.

Customer Information

Install this application for:

>>>> Hidden Text <<<<

&Serial Number:

And here is my work

Run (@ScriptDir & "\OOo_2.3.1_Win32Intel_install_wJRE_en-US.exe")
WinWaitActive("OpenOffice.org 2.3 Installation Preparation")
Send("n")
WinWaitActive("OpenOffice.org 2.3 Installation Preparation")
Send('{enter}')
WinWaitActive("OpenOffice.org 2.3 - Installation Wizard")
WinWaitActive("OpenOffice.org 2.3 - Installation Wizard")
Send("n")
WinWaitActive("OpenOffice.org 2.3 - Installation Wizard")
Send("an")
WinWaitActive("OpenOffice.org 2.3 - Installation Wizard")
ControlClick("OpenOffice.org 2.3 - Installation Wizard","","[ TEXT:&Next >]")

I need help with that last line,It must click on next button, but it dont do it

Could some one helm me here?

Thanks

Link to comment
Share on other sites

why not just use click?

you arnt using controlsend so... whats the use to use controlclick?

WTF does that have to do with anything?

ControlClick("OpenOffice.org 2.3 - Installation Wizard", "[CLASSNN:Button5]")

Link to comment
Share on other sites

  • 9 months later...

I hate watching people struggle through trying to automate an installation when most programs come with a silent install option.

http://documentation.openoffice.org/faqs/i...lation/014.html

I agree, although new to AutoIT, I always try and find the silent install first.

I however have an issue with a corporate installation. I am trying to click on I Accept on the License Agreement screen. Unfortunately, it is not I Accept.

I have tried this line:

ControlClick("Merlin Marketing System - InstallShield Wizard", "", "[CLASSN:Button;Text:I Accept;Instance:3]")

And receive this error:

AutoIT Error:

Line -1:

Error: Error parsing function call

Any ideas?

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...