Hello, 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 3.3.7.0 Thank you in advance for your advice (PS: excuse my poor english )