Jump to content
Sign in to follow this  
Lord Vectronx

Unable to process successive ControlClicks

Recommended Posts

Lord Vectronx

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

post-3250-0-15031900-1394725510_thumb.jp

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 ^_^ )
 

Share this post


Link to post
Share on other sites
water

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


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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  

×