Python-UIAutomation-for-Windows
Python-UIAutomation-for-Windows copied to clipboard
怎么按百分比设置垂直滚动条或水平滚动条
trafficstars
wnd = uiautomation.WindowControl(Name='Settings') wnd.SetActive() scl = wnd.ScrollBarControl(Name='Vertical') m = scl.CurrentMaximum() scl.RangeValuePatternSetValue(m) 上述代码我自己写的按照数值去滚动,验证过可行,但不知您推荐的用法是不是这么用, 另外,怎么按照百分比去滚动?
demos\automation_devicemanager.py
感谢回复。我目前用的是v1.1.15,demo里好多方法不能跑,请问要升级到2.0以上才能用吗?假设不升级的话,1.1.15版本有类似的方法么?