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
  • Sending a set of keys
  • Special characters
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
Performs an input by emulation in a control while checking whether this control is an editable control.
Ejemplo
// Click on EDT_TypeLogin edit control
EmulateMouse(EDT_TypeLogin, emLeftClick, 3, 10)

// Type "MARK" in this control
EmulateInput(EDT_TypeLogin, "Mark", eiShift)

// Click on BTN_ValidateButton
EmulateMouse(EDT_ValidateButton, emLeftClick, 5, 5)
Sintaxis

Entering text in a control Ocultar los detalles

EmulateInput(<Control name> , <Text to type> [, <Additional keys>])
<Control name>: Character string
Name of the Edit control where <Text to type> will be entered.
Note: For input by the function EmulateInput to be possible, the field <Field Name> must be active, in edit mode, and focused at the time of the call.
<Text to type>: Character string
Text to type in the <Control name> control.
<Additional keys>: Optional Integer constant (or combination of constants)
Indicates the keyboard keys that must be pressed during the input.
eiAltPress the Alt key.
eiControlPress the Ctrl key.
eiShiftPress the Shift key.
WINDEV

Entering text Ocultar los detalles

EmulateInput(<Text to type>)
<Text to type>: Character string
Text to type.
Observaciones

Limitations for the controls used

EmulateInput 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 EmulateInput function does not work on a non-interactive TSE session..

Sending a set of keys

Some keys may not be taken into account when a set of keys is sent and when the control used contains calls to Multitask in its modification code.
In this case, the set of keys must be divided into several calls to EmulateInput.

Special characters

When using special characters, specific codes are required to identify:
  • the characters with no action on the screen (the Enter key for example),
  • the characters corresponding to an action (the function keys for example).
You must use the following codes:
KeyCodeKeyCode
BACKSPACE{BS}PAUSE{PAUSE}
CAPSLOCK{CAPSLOCK}DEL{DEL}
DOWN{DOWN}END{END}
ENTER{ENTER}ESC{ESC}
HELP{HELP}HOME{HOME}
INSERT{INS}LEFT{LEFT}
NUMLOCK{NUMLOCK}PGDN{PGDN}
PGUP{PGUP}PRNT. SCREEN{PRTSC}
RIGHT{RIGHT}SCROLLLOCK{SCROLLLOCK}
TAB{TAB}TOP{TOP}
F1{F1}F2{F2}
F3{F3}F4{F4}
F5{F5}F6{F6}
F7{F7}F8{F8}
F9{F9}F10{F10}
F11{F11}F12{F12}
F13{F13}F14{F14}
F15{F15}F16{F16}
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