Sign in to follow this  
Followers 0
au3scr

Control click

11 posts in this topic

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


Share this post


Link to post
Share on other sites



why not just use click?

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

Share this post


Link to post
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]")

Share this post


Link to post
Share on other sites

then can you make example with controlsend ?


Share this post


Link to post
Share on other sites

thank you weaponx


Share this post


Link to post
Share on other sites

msiexec.exe /i openoffice.msi /qn TRANSFORMS=myTransform.mst

i have *.exe file, not *.msi


Share this post


Link to post
Share on other sites

thanks again, do you know how install VLC silently?


Share this post


Link to post
Share on other sites

thanks again, do you know how install VLC silently?

I don't know what VLC is, Very Large Cat? Violet Lawnchair Cannon? Video Lan Client?

http://jeroeneke.laptopvideo2go.com/XP/

Share this post


Link to post
Share on other sites

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?

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  
Followers 0