Sign in to follow this  
Followers 0
sinbad

ControlClick proble

4 posts in this topic

Hello all,

N00b here, just discovered this beautiful tool last night and must say it is very impressive.

I'm trying to use AutoIt for Open Office 2.0

everything goes smooth untill I get:

Posted Image

the Au3Info tool shows me the control as in the script:

Posted Image

and my code for this part is:

winWaitActive ("OpenOffice.org 2.0 - Installation Wizard", "File Type")
ControlClick ( "OpenOffice.org 2.0 - Installation Wizard", "File Type", 4197 [, 1] [, 1]] )
Send("!N")

I read in the help file:

Note: AutoIt only works with standard Microsoft controls - some applications write their own custom controls which may look like a standard MS control but may resist automation. Experiment!

Do you think this is the reason for the error i'm getting?

(@ the end I used

ControlCommand ( "OpenOffice.org 2.0 - Installation Wizard", "File Type", 4197, "Check", "" )
which did let me finish the script without errors but how do YOU go about choosing options when there is more than 2 options like in the following pic for example and the ControlID doesn't accepted?

Posted Image

Thanks in advance.

Share this post


Link to post
Share on other sites



winWaitActive ("OpenOffice.org 2.0 - Installation Wizard", "File Type")

ControlClick ( "OpenOffice.org 2.0 - Installation Wizard", "File Type", 4197 , 1 , 1 )

Send("!N")

Hi, the brackets are the problem. They´re only to show that its optional.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

lol, /me feel stupid.

I should have known this :">

thank you th.meger for your help.

Share this post


Link to post
Share on other sites

lol, /me feel stupid.

I should have known this :">

thank you th.meger for your help.

No prob, that´s what a support forum is for :lmao:

Cu you soon, I guess...

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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