Lord Vectronx Posted March 13, 2014 Share Posted March 13, 2014 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.0Thank you in advance for your advice (PS: excuse my poor english ) Link to comment Share on other sites More sharing options...
Solution l3ill Posted March 13, 2014 Solution Share Posted March 13, 2014 Your English is fine... Welcome to the Forum ! an alternative would be to send TAB to move down and then Spacebar to fill in the checks. Bill Lord Vectronx 1 My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
water Posted March 13, 2014 Share Posted March 13, 2014 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 2024-07-28 - Version 1.6.3.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 (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 More sharing options...
Lord Vectronx Posted March 14, 2014 Author Share Posted March 14, 2014 Big Thanks l3ill, it works fine Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now