How to doubleclick a listview item with pywinauto?

2.6k views Asked by At

I want to use pywinauto to write an auto-click script. I know I can use app.ListView2.Select(4) to select an item. So I tried to use select() or Check(), but it's not working.

How can I doubleclick an item?

1

There are 1 answers

0
SWAPYAutomation On

ListView in pywinauto inherited from HwndWrapper which has DoubleClick() method, try it. Also make sure you've tried Select(item) for ListView. (You've mentioned select())