PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Limitations for the controls used
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
Simulates a mouse event (left click, right click, double click, ...).
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 the Validate button
EmulateMouse(EDT_ValidateButton, emLeftClick, 5, 5)
Syntax
EmulateMouse(<Name of Window or Control> , <Action to Perform> , <X> , <Y>)
<Name of Window or Control>: Character string (with or without quotes)
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:
eiAltKeeps the [ALT] key down during the action.
This constant can be combined with other constants.
For backward compatibility with the earlier versions, you also have the ability to use the diAlt constant.
emRightClickPerforms a right click.
For backward compatibility with the earlier versions, you also have the ability to use the dmRightClick constant.
emLeftClickPerforms a left click.
For backward compatibility with the earlier versions, you also have the ability to use the dmLeftClick constant.
eiControlKeeps the [CTRL] key down during the action.
This constant can be combined with other constants.
For backward compatibility with the earlier versions, you also have the ability to use the diControl constant.
emRightDoubleClickPerforms a right double-click.
For backward compatibility with the earlier versions, you also have the ability to use the dmRightDoubleClick constant.
emLeftDoubleClickPerforms a left double-click.
For backward compatibility with the earlier versions, you also have the ability to use the dmLeftDoubleClick constant.
emRightButtonDownPresses the right button.
For backward compatibility with the earlier versions, you also have the ability to use the dmRightButtonDown constant.
emLeftButtonDownPresses the left button.
For backward compatibility with the earlier versions, you also have the ability to use the dmLeftButtonDown constant.
emRightButtonUpReleases the right button.
For backward compatibility with the earlier versions, you also have the ability to use the dmRightButtonUp constant.
emLeftButtonUpReleases the left button.
For backward compatibility with the earlier versions, you also have the ability to use the dmLeftButtonUp constant.
eiShiftKeeps the [SHIFTL] key down during the action.
This constant can be combined with other constants.
For backward compatibility with the earlier versions, you also have the ability to use the diShift constant.
<X>: 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 the window or control used.
<Y>: 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 the window or control used.
Remarks

Limitations for the controls used

EmulateMouse is not compatible with the following types of controls:
  • Image
  • Progress bar
  • Static
  • OLE control
  • Shape
  • HTML
  • Web Camera
  • Conference
  • Bar code
  • Internal window
  • Chart
Caution: EmulateMouse does not operate on a non-interactive TSE session.
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