Python-UIAutomation-for-Windows icon indicating copy to clipboard operation
Python-UIAutomation-for-Windows copied to clipboard

如何采用SendKey()实现鼠标右键点击?

Open yg271334757 opened this issue 3 years ago • 1 comments
trafficstars

我有一个元素叫map是ListItemControl,我是否可以通过SendKey()进行鼠标点击的操作呢?从document文件中找到了鼠标右键的值是{VK_RBUTTON:2},但是我通过map.SendKey(2)没有实现鼠标右击,请问该如何操作呢?谢谢。

yg271334757 avatar Mar 20 '22 13:03 yg271334757

可以用Control.RightClick

L-Yucheng avatar Oct 19 '22 01:10 L-Yucheng