PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Limitations for the controls used
  • Sending a set of keys
  • Special characters
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Performs an input by emulation in a control while checking whether this control is an editable control.
Versions 15 and later
Java This function is now available for Java applications.
New in version 15
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Example
// Clic sur le champ de saisie SAI_SaisieLogin
EmulateMouse(SAI_SaisieLogin, emLeftClick, 3, 10)
 
// Saisie de "MARC" dans ce champ
EmulateInput(SAI_SaisieLogin, "Marc", eiShift)
 
// Clic sur le bouton BTN_BoutonValider
EmulateMouse(BTN_BoutonValider, emLeftClick, 5, 5)
Syntax
EmulateInput(<Control name> , <Text to type> [, <Additional keys>])
<Control name>: Character string
Name of edit control where <Text to type> will be typed.
Remark: In order for the input to be performed by EmulateInput, <Control name> must be an editable control and it must have focus when the call is performed.
<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.
For compatibility with the earlier versions, you can also use the diAlt constant.
eiControlPress the Ctrl key.
For compatibility with the earlier versions, you can also use the diControl constant.
eiShiftPress the Shift key.
For compatibility with the earlier versions, you can also use the diShift constant.
Remarks

Limitations for the controls used

EmulateInput 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: EmulateInput does not operate 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, it is preferable to split the series of keys into several calls to function 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{RA}PAUSE{PAUSE}
CAPSLOCK{VERRMAJ}DEL{SUPPR}
DOWN{DOWN}END{END}
ENTER{ENTER}ESC{ECHAP}
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}
Component: wd270std.dll
Minimum version required
  • Version 11
Comments
Click [Add] to post a comment