A few variables are exported for working with the Simba mouse functions.
TClickType, which defines the click type.
const
mouse_Right = 0
mouse_Left = 1
mouse_Middle = 2
TMousePress, which defines if the mouse button is to be down or up.
TMousePress = (mouse_Down, mouse_Up);
Keyboard functions often use Virtual Keys. See Keyboard Virtual Keys for a complete list.
procedure MoveMouse(x, y: integer);
MoveMouse moves the mouse pointer to the specified x and y coordinates.
procedure GetMousePos(var x, y: integer);
GetMousePos returns the current position of the mouse in x and y.
procedure HoldMouse(x, y: Integer; clickType: TClickType);
HoldMouse holds the given mouse button (clickType) down at the specified x, y coordinate. If the mouse if not at the given x, y yet, the mouse position will be set to x, y.
procedure ReleaseMouse(x, y: Integer; clickType: TClickType);
HoldMouse holds the given mouse button (clickType) down at the specified x, y coordinate. If the mouse if not at the given x, y yet, the mouse position will be set to x, y.
procedure ClickMouse(x, y: Integer; clickType: Integer):
ClickMouse performs a click with the given mouse button (clickType) at the specified x, y coordinate.
Keyboard functions are obviously used to manipulate the keyboard input. It can also be used to read states of specific keys.
procedure KeyDown(key: Word);
KeyDown sends a request to the Operating System to “fake” an event that causes the key to be “down”.
procedure KeyUp(key: Word);
KeyDown sends a request to the Operating System to “fake” an event that causes the key to be “up”.