Simulates mouse, keyboard, and pointer input as if it were performed by a real player.
- Memory category
- Instances
- Own members
- 6
- Inherited members
- 6
- Subclasses
- 0
- Siblings
- 30
Properties2
No properties match the filters.
Methods9
Object:GetPropertyChangedSignal( property: string): RBXScriptSignal Get an event that fires when a given property of the object changes.Parameters Parameter Description property: stringThe property to connect to.Returns Type Description RBXScriptSignalA signal that fires whenever the property changes.- Returns true if an object's class matches or inherits from a given class.
Parameters Parameter Description className: stringThe class against which the Object's class will be checked. Case-sensitive.Returns Type Description booleanDescribes whether the Object's class matched or is a subclass of the given class. - Deprecated: This deprecated function is a variant of
Object:IsA()which should be used instead.Parameters Parameter className: stringReturns Type booleanUse IsA instead.
Defined byVirtualInput6
VirtualInput:SendKey(isPressed: boolean,keyCode: Enum.KeyCode,isRepeatedKey: boolean? = false,) Injects a keyboard key press or release event.Parameters Parameter Description isPressed: booleanWhether to simulate a key press (true) or a key release (false).keyCode: Enum.KeyCodeTheKeyCodeof the key to inject.isRepeatedKey: boolean? = falseWhether this is an auto-repeat event, as occurs when a key is held down. Only valid for text-manipulation keys such asKeyCode.Backspace,KeyCode.Delete, and the arrow keys. Defaults tofalse.VirtualInput:SendMouseButton(position: Vector2,button: Enum.UserInputType,isDown: boolean,repeatCount: number? = 0,) Injects a mouse button press or release event at the specified screen position.Parameters Parameter Description position: Vector2The screen-space position in pixels at which to inject the event.button: Enum.UserInputTypeThe mouse button to use. Supported values areUserInputType.MouseButton1,UserInputType.MouseButton2, andUserInputType.MouseButton3.isDown: booleanWhether to simulate a button press (true) or a button release (false).repeatCount: number? = 0The consecutive-click count for multi-click detection, such as a double- or triple-click. Defaults to0.VirtualInput:SendMouseDelta( positionDelta: Vector2) Injects a relative mouse movement event. Only works while the player's cursor is locked.Parameters Parameter Description positionDelta: Vector2The relative mouse movement in pixels along each axis.VirtualInput:SendMousePosition( position: Vector2) Moves the virtual mouse cursor to the specified absolute screen position.Parameters Parameter Description position: Vector2The target screen-space position in pixels.VirtualInput:SendPointerAction(position: Vector2,pointerAction: { [string]: any },) Injects a scroll wheel, trackpad pan, or pinch gesture event at the specified screen position.Parameters Parameter Description position: Vector2The screen-space position in pixels at which to inject the event.pointerAction: { [string]: any }A dictionary describing the pointer action to inject. Accepted keys areWheel(number),Pan(Vector2), andPinch(number). At least one key must have a non-zero value.VirtualInput:SendTextInput( text: string) Injects a text input event as if the specified string was typed on a keyboard.Parameters Parameter Description text: stringThe string to inject as text input.
No methods match the filters.
Events1
Object.Changed: RBXScriptSignal<( property: string)> Fires immediately after a property of the object changes, with some limitations.Parameters Parameter property: string
No events match the filters.