wpf - PyWinAuto.drag_mouse_input don't actually drag or drop - Stack Overflow

admin2025-04-28  2

I use PyWinAuto to automate my WPF application. I need to drag an item from a TreeView to a ListView. I used to do the dragging. The item is clicked and then the mouse appears in the correct position, but the item is not dragged.

This is my code:

itemOperations_1.drag_mouse_input( dst=getSetLV.rectangle().mid_point(), src=(itemOperations_1.rectangle().left + 50, itemOperations_1.rectangle().top + 10))

转载请注明原文地址:http://www.anycun.com/QandA/1745855353a91274.html