How can i scroll in a desktop application?

How can i scroll in a desktop application? Is it use mouse move?

To scroll a desktop application window there are two good position:

  • Have UI.Vision drag the scrollbar (using XClick and XMove). This is usually a bit tricky and I try to avoid it. But if you want to use it, then best to use XClickRelative and XMoveRelative.

  • Simulate keyboard shortcuts with XType e. g. ${KEY_PAGE_DOWN} . That is what I usually use. Just make sure that the application windows has the focus. You do this usually by sending an XClick to the app window first.

Desktop Application is a very difficult website. I have not found the answer yet but after searching the net my problem may be solved.