Emulates the next call to
YesNo and automatically clicks the button specified as parameter.
// Automatically close the next YesNo dialog box
// The answer on which the click will be performed is Yes
EmulateYesNo(Yes)
// Process
// ...
SWITCH Confirm("Do you want to save the modifications?")
CASE Yes
// Save the modifications
CASE No
// Cancel the modifications
END
// The message is automatically closed via a click performed on Yes
Syntax
<Button>: Integer constant
Indicates the button that will be clicked in the YesNo window: | |
No | Click on [NO] |
Yes | Click on [YES] |
Remarks
Difference of message type
The order of the
EmulateXXX functions must respect the display order of
Error,
Info, ... Otherwise, a fatal error will occur.
Component: wd270testexe.dll