Click or drag to resize

aceTerminalInputaskPressAnyKeyInTime Method

Home | imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Asks user to confirm action by pressing any button except Escape.

Namespace:  imbACE.Services.terminal
Assembly:  imbACE.Services (in imbACE.Services.dll) Version: 0.2
Syntax
C#
public static bool askPressAnyKeyInTime(
	string question,
	bool defAns = false,
	int timeout = 10,
	bool doBeep = false,
	int doBeepInLast = 3
)
Request Example View Source

Parameters

question
Type: SystemString
The question/message to show
defAns (Optional)
Type: SystemBoolean
Boolean result for user inaction, it will return opposite value if something was pressed.
timeout (Optional)
Type: SystemInt32
In seconds, time given for reaction.
doBeep (Optional)
Type: SystemBoolean
if set to true it will beep in last 3 seconds.
doBeepInLast (Optional)
Type: SystemInt32
if doBeep is true then it will beep in last specified seconds

Return Value

Type: Boolean
Returns defAns if no action by user, returns !defAns in other case
See Also