Jump to content

ControlClick 8 times


 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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