Scrolling issues with pywinauto

Viewed 3223

I'm trying to scroll in an excel document (using pywinauto) and it doesn't seem to work.

Code:

app = Application(backend="uia").connect(process=8876)
win = app.top_window()
win.set_focus()
win.wheel_mouse_input(wheel_dist=10)

The set_focus works but the scrolling doesn't, I also tried playing with the wheel_dist with no success.

Another question, Is there a way to scroll Right/Left?

Thanks.

2 Answers

.wheel_mouse_input(wheel_dist=100) seems to have done the trick for me. I've only checked this in Word but hopefully it will also work in Excel.

Related