0

Does anyone know how to get the list of items and check/uncheck items in a CheckedListBox from python? I've found this to help me partly on the way. I think I've found the handle for the CheckedListBox(listed as a SysTreeView32 by WinGuiAuto.py).

One usage will for my part be to create an autoinstaller that manages to uncheck all checkboxes that installs bloatware.

4

1 回答 1

1

通过使用pywinauto,我设法通过选择两次来检查选中列表框中的项目。

from pywinauto import application
app = application.Application()
app.Form1.CheckedListBox1.Select('item1')
app.Form1.CheckedListBox1.Select('item1')
于 2009-09-04T10:33:57.900 回答