Jump to content
Sign in to follow this  
Lord Vectronx

Unable to process successive ControlClicks

Recommended Posts

Lord Vectronx


I for some time developing with AutoIt and I met a weird problem . I searched the forum , not perhaps enough and have found no satisfactory answer.

I try to " check" certain checkboxes in the next window (see capture below), however ALL the boxes are the same INSTANCE and the same CONTROL ID, so I only have the position to manage the problem ,so ControlClick .
Here is the relevant snippet :

Global $APPDATA = "Installation de ITESOFT FreeMind 1.9.5!Poste de numérisation!Langue de l'assistant d'installation![CLASS:TNewCheckListBox; INSTANCE:1]"
$appinstall = StringSplit($APPDATA, "!") ;Liste d'arguments fenêtre et contrôles à utiliser pour les clics

WinWaitActive($appinstall[1], $appinstall[2])
;~ MouseClick("left", 53, 184)
ControlClick($appinstall[1], $appinstall[2], "[CLASS:TNewCheckListBox; INSTANCE:1]", "left", 1, 10, 26)
;~ MouseClick("left", 53, 200)
ControlClick($appinstall[1], $appinstall[2], "[CLASS:TNewCheckListBox; INSTANCE:1]", "left", 1, 10, 41)
;~ MouseClick("left", 53, 215)
ControlClick($appinstall[1], $appinstall[2], "[CLASS:TNewCheckListBox; INSTANCE:1]", "left", 1, 10, 58)
;~ MouseClick("left", 53, 232)
ControlClick($appinstall[1], $appinstall[2], "[CLASS:TNewCheckListBox; INSTANCE:1]", "left", 1, 10, 74)
;~ MouseClick("left", 53, 262)
ControlClick($appinstall[1], $appinstall[2], "[CLASS:TNewCheckListBox; INSTANCE:1]", "left", 1, 10, 105)
;~ MouseClick("left", 53, 280)
ControlClick($appinstall[1], $appinstall[2], "[CLASS:TNewCheckListBox; INSTANCE:1]", "left", 1, 10, 120)

Following, data capture of the active window


Result: only the first box is checked, if I comment the first ControClick, it is the next to be checked, so it is that the code works ... but individually..
I tried to separate them by a SLEEP (XXXX), same result, only the first uncommented ControlClick works..

Question: how to make them all work or are there a way around the problem ( Mouseclick does not work )

Environment : WIN7 32bit AutoIt v3.3.10.1 2014 Scite

Thank you in advance for your advice (PS: excuse my poor english ^_^ )

Share this post

Link to post
Share on other sites

FreeMind uses Inno Setup to install. Command line switches are supported, so a silent install should be possible.

My UDFs and Tutorials:


Active Directory (NEW 2018-12-03 - Version - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki

ADO - Wiki


Share this post

Link to post
Share on other sites
Lord Vectronx

Big Thanks l3ill, it works fine

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