.TerminalMouse

Syntax

TerminalMouse Type, Row, Column

Description

Equivalent to clicking in the specified location with the terminal mouse. Use the SetMousePos command to position the mouse before using TerminalMouse to simulate a click.

Command Parameters

Type Argument type: Enumeration
 

Specifies which mouse action to simulate. The values are:

Left Button Down (rcLeftDown)
Simulates pressing down the left button.

Left Button Up
(rcLeftUp)
Simulates releasing the left button.

Left Click (rcLeftClick)
Simulates a single-click with the left button.

Left Double Click (rcLeftDblClick)
Simulates a double-click with the left button.

Middle Button Down (rcMiddleDown)
Simulates pressing down the middle button.

Middle Button Up
(rcMiddleUp)
Simulates releasing the middle button.

Middle Click (rcMiddleClick)
Simulates a single-click with the middle button.

Middle Double Click (rcMiddleDblClick)
Simulates a double-click with the middle button.

Right Button Down (rcRightDown)
Simulates pressing down the right button.

Right Button Up (rcRightUp)
Simulates releasing the right button.

Right Click (rcRightClick)
Simulates a single-click with the right button.

Right Double Click (rcRightDblClick)
Simulates a double-click with the right button.

   
Row Argument type: Integer
  Specifies a row in the host screen. To simulate a click of the terminal mouse in the same location as the PC mouse, use rcMouseRow for this argument.
   
Column Argument type: Integer
  Specifies a column in the host screen. To simulate a click of the terminal mouse in the same location as the PC mouse, use rcMouseCol for this argument.
   

Note: In AS/400 sessions, you can simulate a light pen selection by using rcLeftClick for the Type argument, and specifying row and column values for a pen-detectable field. (For 3270 sessions, use the LightPen command to simulate a light pen selection.)