HScroll (statement)

Syntax

HScroll percentage

Description

Sets the thumb mark on the horizontal scroll bar attached to the current window.

Comments

The position is given as a percentage of the total range associated with that scroll bar. For example, if the percentage parameter is 50, then the thumb mark is positioned in the middle of the scroll bar.

Example

This example centers the thumb mark on the horizontal scroll bar of the Notepad window.

Sub Main()

  AppActivate "Notepad"

  HScroll 50   'Jump to the middle of the document.

End Sub

See Also

HLine (statement); HPage (statement).

More information

H