|
- Limitations for the controls used
EmulateMouse (Function) In french: PiloteSouris Simulates a mouse event (left click, right click, double click, ...). Versions 15 and later New in version 15
// Click on EDT_TypeLogin edit control EmulateMouse(EDT_TypeLogin, emLeftClick, 3, 10) // Type "MARK" in this control EmulateInput(EDT_TypeLogin, "Mark", eiShift) // Click Validate Button control EmulateMouse(EDT_ValidateButton, emLeftClick, 5, 5)
Syntax
EmulateMouse(<Window or control> , <Action to perform> [, <X> , <Y>])
<Window or control>: Window name or control name Name of window or control on which the mouse event will be performed. <Action to perform>: Integer constant (or combination of constants) Indicates the mouse event to simulate: | | eiAlt | Holds the Alt key down during the action. This constant can be combined with other constants.For compatibility with the earlier versions, you can also use the diAlt constant. | emRightClick | Performs a right click. For compatibility with the earlier versions, you can also use the dmRightClick constant. | emLeftClick | Performs a left click. For compatibility with the earlier versions, you can also use the dmLeftClick constant. | eiControl | Holds the Ctrl key down during the action. This constant can be combined with other constants.For compatibility with the earlier versions, you can also use the diControl constant. | emRightDoubleClick | Performs a right double-click. For compatibility with the earlier versions, you can also use the dmRightDoubleClick constant. | emLeftDoubleClick | Performs a left double-click. For compatibility with the earlier versions, you can also use the dmLeftDoubleClick constant. | emRightButtonDown | Presses the right button. For compatibility with the earlier versions, you can also use the dmRightButtonDown constant. | emLeftButtonDown | Presses the left button. For compatibility with the earlier versions, you can also use the dmLeftButtonDown constant. | emRightButtonUp | Releases the right button. For compatibility with the earlier versions, you can also use the dmRightButtonUp constant. | emLeftButtonUp | Releases the left button. For compatibility with the earlier versions, you can also use the dmLeftButtonUp constant. | eiShift | Holds the Shift key down during the action. This constant can be combined with other constants.For compatibility with the earlier versions, you can also use the diShift constant. |
<X>: Optional integer Horizontal position (or X coordinate) in pixels where the action must be performed. This position is given in relation to the top left corner of window or control used. Versions 25 and later New in version 25 <Y>: Optional integer Vertical position (or y coordinate) in pixels where the action must be performed. This position is given in relation to the top left corner of window or control used.
Versions 25 and later New in version 25 Remarks Limitations for the controls used EmulateMouse is not compatible with the following types of controls: - Image control.
- Progress Bar control.
- Static control.
- OLE control.
- Shape control,
- HTML control,
- Web Camera control.
- Conference control.
- Bar Code control.
- Internal Window control
- Chart control.
Caution: EmulateMouse does not operate on a non-interactive TSE session. Business / UI classification : UI Code
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |