Frozen Posted September 28, 2011 Share Posted September 28, 2011 (edited) Hi Everybody I've been using autoit for a while now and could always find help on my own but now I'm having a problem and don't know any possible solution. In the attached file you can see what I'm talking about. I need to read out the status of all the checkboxes in the list and then either, check or uncheck them depending if they already are. I tried quite a few solutions but it seems theres not much you can do with SysListView32 Windows. I dont care if there's a lot of code just need anyway to make this possible. EDIT: My first try was with "down, down, down, space" and so on. The problem ist that there is different checkboxes selected for each blackberry I need to prepare so it would send space to a checkbox that is already selected and uncheck it. Edited September 28, 2011 by Frozen Link to comment Share on other sites More sharing options...
Envoi Posted September 28, 2011 Share Posted September 28, 2011 I'm thinking _GUICtrlListView_GetItemChecked might be something that can help you. Check that out in the Help and see if it gets you on track. Hope that helps. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted September 28, 2011 Share Posted September 28, 2011 You may have good luck with the ControlCommand function. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Frozen Posted October 3, 2011 Author Share Posted October 3, 2011 The main problem is Au3Info.exe can only see the whole sysliestview32 windows but not the single instances inside.Check the first Pic see the black border around the whole table. tool. In the second picture i can get an instance with the infotoolI even tried some sort of autoit controls enumerator, this is all i gotexpandcollapse popup[0]|Handle|Classname|Control ID|Iteration|Title/Text [1]|0x000F06FE|#32770|0|1| [2]|0x001606D0|SysListView32|8000|1|List1 [3]|0x000F06BC|SysHeader32|0|1| [4]|0x001606AC|Static|8003|1|System Software for the BlackBerry Smartphone [5]|0x0010071C|Button|8002|1|&Details... [6]|0x001C0746|Static|8104|2| [7]|0x001A06FA|Static|8103|3|Total application space: 132074 K [8]|0x001406F4|Button|8036|2|&Add... [9]|0x001B0768|Button|8040|3|De&lete [10]|0x000F0718|Button|8109|4|Li&st additional applications that are installed on the connected device [11]|0x001806CC|Static|8105|4| [12]|0x000502C4|#32770|0|2| [13]|0x00050314|Static|65535|5|Please wait while the Application Loader Wizard retrieves and examines your device's current configuration. [14]|0x000F0304|Static|8041|6|Read application configuration [15]|0x0007037C|Static|8042|7|Read device system configuration [16]|0x0006031E|Static|8043|8|Read device service information [17]|0x000502B8|Static|8044|9|Static [18]|0x0005038A|Static|8045|10|Static [19]|0x000502C0|msctls_progress32|8022|1|Progress1 [20]|0x00080318|msctls_progress32|8024|2|Progress1 [21]|0x001306B6|Static|8070|11| [22]|0x000E06C0|Static|8069|12| [23]|0x001807F0|Static|0|13| [24]|0x001506D2|Static|0|14| [25]|0x000F0706|Static|0|15| [26]|0x0005031A|#32770|0|3| [27]|0x00060316|Static|-1|16|Select the communication port to which your device is connected, or check the "Detect" box to scan for the port automatically. [28]|0x000602D2|Static|-1|17|&Connection: [29]|0x000902D6|ComboBox|8001|1|USB-PIN: 27C78943 [30]|0x00050380|Button|8061|5|&Detect communication port [31]|0x0005038C|Static|8060|18|Connecting to the device (JVM)... [32]|0x00090388|#32770|0|4| [33]|0x000802B4|Static|65535|19|This wizard will guide you through the process of adding, removing and updating application programs installed on your BlackBerry Wireless Device. [34]|0x000802BE|Static|8035|20|Welcome to the Application Loader Wizard [35]|0x00050396|Static|65535|21|Please ensure that your device is securely connected to your computer, and press Next to begin. [36]|0x00050308|Static|8060|22|Connecting... [37]|0x000702CA|SysTabControl32|12320|1| [38]|0x000802B6|msctls_updown32|1|1| [39]|0x000602B2|Static|12326|23| [40]|0x00050322|Button|12323|6|< &Back [41]|0x00050320|Button|12324|7|&Next > [42]|0x000C02CE|Button|12325|8|Finish [43]|0x00100386|Button|2|9|Cancel [44]|0x000702BA|Button|9|10|Help [45]|0x00100394|Static|12327|24| [46]|0x0005031C|ScrollBar|59393|1|I just can't get the IDs for the individual checkboxes Link to comment Share on other sites More sharing options...
Envoi Posted October 3, 2011 Share Posted October 3, 2011 I might be mistaken, but I don't think the AutoItWindowInfo typically exposes the IDs of individual line items of a ListView. That's why you would use the _GUICtrlListView_* functions. Once you have the handle for the ListView, you'll need to use functions like the _GUICtrlListView_GetItemCount, _GUICtrlListView_GetItemText, etc. They will let you iterate through those individual items, check their state, and change it, if necessary. Hope this helps. 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