Programming with Reflection
TerminalMouse method
Syntax object.TerminalMouse Action, Row, Column
Equivalent to clicking in the specified location with the terminal mouse. Use the SetMousePos method to position the mouse before using TerminalMouse to simulate a click.
Action Argument type: Enumeration
Specifies which mouse action to simulate. The values are:
rcLeftClick
Simulates a single-click with the left button.
rcRightClick
Simulates a single-click with the right button.
rcMiddleClick
Simulates a single-click with the middle button.
rcLeftDblClick
Simulates a double-click with the left button.
rcRightDblClick
Simulates a double-click with the right button.
rcMiddleDblClick
Simulates a double-click with the middle button.
rcLeftDown
Simulates pressing down the left button.
rcRightDown
Simulates pressing down the right button.
rcMiddleDown
Simulates pressing down the middle button.
rcLeftUp
Simulates releasing the left button.
rcRightUp
Simulates releasing the right button.
rcMiddleUp
Simulates releasing the middle 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 Action argument, and specifying row and column values for a pen-detectable field. (For 3270 sessions, use the LightPen method to simulate a light pen selection.)