Jump to content
Sign in to follow this  
tintin92

ControlClick 8 times

Recommended Posts

tintin92

Hi,

New to AutoIt.

$answer = ControlClick ( "Calculatrice", "", "Button5")

This one works

(French Calculatrice = calculator)

Want to click 8 times the same button.

$answer = ControlClick ( "Calculatrice", "", "Button5", , 8)

Got :

>"j:\Program Files\AutoIt3\autoit3.exe" /ErrorStdOut "K:\01ABBatch\11AutoIt\Calculatrice.au3"

K:\01ABBatch\11AutoIt\Calculatrice.au3 (12) : ==> Error in expression.:

$answer = ControlClick ( "Calculatrice", "", "Button5",,8)

$answer = ControlClick ( "Calculatrice", "", "Button5",^ ERROR

>Exit code: 0 Time: 0.545

This one, no error, but just 1 time no 8 times.

$answer = ControlClick ( "Calculatrice", "", "Button5",8)

Thanks

Tintin92


Tintin92

Share this post


Link to post
Share on other sites
SlimShady

If you're new to AutoIt then read the help file.

They made it for new people so they can learn the syntax of functions.

The syntax for ControlClick is:

ControlClick ( "title", "text", "classnameNN" [, button][, clicks]] )

For more info abut the parameters, check the help file. Edited by SlimShady

Share this post


Link to post
Share on other sites
Jos

something you need to know about parameters for functions:

Many functions contain optional parameters that can be omitted.  If you wish to specify an optional parameter, however, all parameters that precede it must be specified!

For example, consider Run ( "filename", ["workingdir" [, flag]] ).  If you wish to specify the flag, you must specify a workingdir.


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
tintin92

something you need to know about parameters for functions:

<{POST_SNAPBACK}>

Thanks.

This one works.

$answer = ControlClick ( "Calculatrice", "", "Button5","left",8)

Tintin92


Tintin92

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  

×