Jump to content

Unable to process successive ControlClicks


Go to solution Solved by l3ill,

Recommended Posts

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

Link to comment
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:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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