Tribot SDK
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Tribot SDK
script-sdk
/
org.tribot.script.sdk.input
/
Keyboard
/
HoldAction
/
KeyHoldContext
Key
Hold
Context
open
class
KeyHoldContext
Represents the context of a current key hold action.
See also
this#start()
Members
Constructors
Key
Hold
Context
Link copied to clipboard
constructor
(
)
Functions
is
Active
Link copied to clipboard
open
fun
isActive
(
)
:
Boolean
Checks if the current key hold action is running
is
Started
Link copied to clipboard
open
fun
isStarted
(
)
:
Boolean
Checks if the key hold action thread has started holding the key
is
Stopped
Link copied to clipboard
open
fun
isStopped
(
)
:
Boolean
Checks if the current key hold action was stopped through
stop
stop
Link copied to clipboard
open
fun
stop
(
)
Stops the current key hold action
wait
For
Link copied to clipboard
open
fun
waitFor
(
)
Waits for the key hold action to complete.
open
fun
waitFor
(
timeoutMs
:
Long
)
:
Boolean
Waits for the key hold action to complete up until the specified timeout.
wait
For
Start
Link copied to clipboard
open
fun
waitForStart
(
)
Waits for the key hold action to start holding the key
open
fun
waitForStart
(
timeoutMs
:
Long
)
:
Boolean
Waits for the key hold action to start holding the key, up to the specified timeout time