Python
import uiautomation as uiauto
...
def scrollBar():
time.sleep(2)
getScrollBar = uiauto.ScrollBarControl(Depth=18,Name='垂直')
print(getScrollBar)
getScrollBar.Click()#clcik預設居中
uiauto.MoveTo(getDeptButton.BoundingRectangle.right+2, getDeptButton.BoundingRectangle.top)
uiauto.Click(getDeptButton.BoundingRectangle.right+2, getDeptButton.BoundingRectangle.top)
...