Ich kann meine Kontrollkästchen mit Pywinauto nicht auswählen

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Ich kann meine Kontrollkästchen mit Pywinauto nicht auswählen

by Guest » 04 Feb 2025, 12:05

Ich versuche, mit Windows mit Pywinauto zu interagieren.

Code: Select all

   |    |    |    |    |    |    |    | ListBox - 'Team'    (L381, T265, R513, B285)
|    |    |    |    |    |    |    | ['Team2', 'TeamListBox', 'ListBox']
|    |    |    |    |    |    |    | child_window(title="Team", control_type="List")
|    |    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |    | CheckBox - 'Team'    (L381, T265, R513, B285)
|    |    |    |    |    |    |    |    | ['Team3', 'TeamCheckBox', 'CheckBox', 'TeamCheckBox0', 'TeamCheckBox1', 'CheckBox0', 'CheckBox1']
|    |    |    |    |    |    |    |    | child_window(title="Team", control_type="CheckBox")
|    |    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |    | CheckBox - 'Team'    (L381, T265, R513, B285)
|    |    |    |    |    |    |    |    | ['Team3', 'TeamCheckBox', 'CheckBox', 'TeamCheckBox0', 'TeamCheckBox1', 'CheckBox0', 'CheckBox1']
|    |    |    |    |    |    |    |    | child_window(title="Team", control_type="CheckBox")
|    |    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |    | CheckBox - 'Team'    (L381, T265, R513, B285)
|    |    |    |    |    |    |    |    | ['Team3', 'TeamCheckBox', 'CheckBox', 'TeamCheckBox0', 'TeamCheckBox1', 'CheckBox0', 'CheckBox1']
|    |    |    |    |    |    |    |    | child_window(title="Team", control_type="CheckBox")
|    |    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |    | CheckBox - 'Team'    (L381, T265, R513, B285)
|    |    |    |    |    |    |    |    | ['Team3', 'TeamCheckBox', 'CheckBox', 'TeamCheckBox0', 'TeamCheckBox1', 'CheckBox0', 'CheckBox1']
|    |    |    |    |    |    |    |    | child_window(title="Team", control_type="CheckBox")
, aber ich konnte die zu überprüfen oder klicken nicht auswählen. Br />

Code: Select all

print(dlg_spec.TeamListBox.item_count())
dlg_spec.TeamListBox.select(2, select=True)
< /code>
Die Ausgabe: < /p>
26
Traceback (most recent call last):
dlg_spec.TeamListBox.select(2, select=True)
TypeError: select() got an unexpected keyword argument 'select'

Top