AcediaDocumentation

Input & clipboard

Virtual input events and clipboard text.

These calls synthesize input or place text on a clipboard.

  • Key codes are Windows virtual-key codes. Mouse coordinates are Roblox viewport pixels.
  • Input is virtual. Keys, buttons and the wheel go straight to the Roblox client as raw input, never through Windows, so other applications do not see them and the real keyboard and pointer are untouched.
  • mousemoveabs and mousemoverel drive a virtual cursor that Roblox reports for 5 seconds after the last move. Acedia draws it on screen with a Virtual input tooltip; see Virtual cursor.

The virtual cursor clicking a button, with its Virtual input tooltip

Functions

FunctionPurpose
Virtual cursorHow virtual input reaches Roblox, and the on-screen cursor that shows it.
setclipboardReplaces the system clipboard text.
setrbxclipboardCopies text or a partial serialized Instance tree to the clipboard.
keypressPresses a Windows virtual-key code.
keyreleaseReleases a Windows virtual-key code.
keytapPresses and immediately releases a Windows virtual-key code.
mouse1clickClicks the left mouse button.
mouse1pressPresses the left mouse button.
mouse1releaseReleases the left mouse button.
mouse2clickClicks the right mouse button.
mouse2pressPresses the right mouse button.
mouse2releaseReleases the right mouse button.
mousemoveabsMoves the virtual cursor to Roblox viewport coordinates.
mousemoverelMoves the virtual cursor by relative offsets.
mousescrollSends a mouse-wheel delta to the Roblox client.

On this page