Show / Hide Table of Contents

Method keys.waitForReleased(+ 1 overload)


Overload

Waits while the specified keys or/and mouse buttons are pressed.

public static bool waitForReleased(Seconds timeout, params KKey[] keys_)
Parameters
timeout  (Seconds)

Timeout, seconds. Can be 0 (infinite), >0 (exception) or <0 (no exception). More info: Wait timeout.

keys_  (KKey[])

One or more keys or/and mouse buttons. Waits until all are released.

Returns
bool

Returns true. On timeout returns false if timeout is negative; else exception.

Exceptions
TimeoutException

timeout time has expired (if > 0).


Overload(top)

Waits while the specified keys are pressed.

public static bool waitForReleased(Seconds timeout, string keys_)
Parameters
timeout  (Seconds)

Timeout, seconds. Can be 0 (infinite), >0 (exception) or <0 (no exception). More info: Wait timeout.

keys_  (string)

One or more keys. Waits until all are released. String like with keys.send, without operators.

Returns
bool

Returns true. On timeout returns false if timeout is negative; else exception.

Exceptions
ArgumentException

Error in keys_ string.

TimeoutException

timeout time has expired (if > 0).