PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 the Java applications.
New in version 15
Java This function is now available for the Java applications.
Java This function is now available for the Java applications.
Example
// Click on the EDT_EnterLogin edit control
EmulateMouse(EDT_EnterLogin, emLeftClick, 3, 10)

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

// Click on BTN_ValidateButton
EmulateMouse(EDT_ValidateButton, emLeftClick, 5, 5)
Syntax
EmulateInput(<Control Name> , <Text to Enter> [, <Additional Keys>])
<Control Name>: Character string (with or without quotes)
Name of the edit control where <Text to Enter> will be typed.
Note: 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 Enter>: Character string with quotes
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.
eiAltThe [ALT] key is pressed.
For backward compatibility with the earlier versions, you also have the ability to use the diAlt constant.
eiControlThe [CTRL] key is pressed.
For backward compatibility with the earlier versions, you also have the ability to use the diControl constant.
eiShiftThe [SHIFT] key is pressed.
For backward compatibility with the earlier versions, you also have the ability to use the diShift constant.
Remarks

Limitations for the controls used

EmulateInput is not compatible with the following types of controls:
  • Image
  • Progress bar
  • Static
  • OLE control
  • Shape
  • HTML
  • Web Camera
  • Conference
  • Bar code
  • Internal window
  • Graph
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, the set of keys must be divided into several calls to EmulateInput.
PCS_SANS_TRADUCTION_US. PCS_SANS_TRADUCTION_US:
PCS_SANS_TRADUCTION_US

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}
Components
WINDEV wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment