AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de emulación
  • Limitations for the controls used
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Simulates a mouse event (left click, right click, double click, ...).
Ejemplo
// Click on EDT_TypeLogin edit control
EmulateMouse(EDT_TypeLogin, emLeftClick, 3, 10)
 
// Type "MARK" in this control
EmulateInput(EDT_TypeLogin, "Mark", eiShift)
 
// Click the Validate Button control
EmulateMouse(EDT_ValidateButton, emLeftClick, 5, 5)
Sintaxis
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:
eiAltHolds the Alt key down during the action.
This constant can be combined with other constants.
eiControlHolds the Ctrl key down during the action.
This constant can be combined with other constants.
eiShiftHolds the Shift key down during the action.
This constant can be combined with other constants.
emLeftButtonDownPresses the left button.
emLeftButtonUpReleases the left button.
emLeftClickPerforms a left click.
emLeftDoubleClickPerforms a left double-click.
emRightButtonDownPresses the right button.
emRightButtonUpReleases the right button.
emRightClickPerforms a right click.
emRightDoubleClickPerforms a right double-click.
<X>: Optional integer
Horizontal position (or X-coordinate) in pixels where the action must be performed. This position is given in relation to the upper-left corner of the window or control used.
WINDEV <X> and <Y> parameters are optional. If these parameters are not specified, the mouse event to simulate is run in the middle of the window or control.
Java This parameter must be specified.
<Y>: Optional integer
Vertical position (or Y-coordinate) in pixels where the action must be performed. This position is given in relation to the upper-left corner of the window or control used.
WINDEV <X> and <Y> parameters are optional. If these parameters are not specified, the mouse event to simulate is run in the middle of the window or control.
Java This parameter must be specified.
Observaciones

Limitations for the controls used

EmulateMouse is not compatible with the following types of controls:
  • Image control.
  • Progress Bar control.
  • Static Text control.
  • OLE control.
  • Shape control,
  • HTML control,
  • Web Camera control.
  • Conference control.
  • Bar Code control.
  • Internal Window control
  • Chart control.
Caution: The EmulateMouse function does not work on a non-interactive TSE session..
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300std.dll
Versión mínima requerida
  • Versión 11
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local