Input
Documentation of input-related Synapse Z environment functions
iswindowactive
bool iswindowactive()
returns whenever the roblox window is focused
mouse1click
void mouse1click(x: number?, y: number?)
clicks the left mouse button with optional x and y parameters
mouse1press
void mouse1press(x: number?, y: number?)
presses the left mouse button with optional x and y parameters
mouse1release
void mouse1release(x: number?, y: number?)
releases the left mouse button with optional x and y parameters
mouse2click
void mouse2click(x: number?, y: number?)
clicks the right mouse button with optional x and y parameters
mouse2press
void mouse2press(x: number?, y: number?)
presses the right mouse button with optional x and y parameters
mouse2release
void mouse2release(x: number?, y: number?)
releases the right mouse button with optional x and y parameters
mousemoveabs
void mousemoveabs(x: number, y: number)
moves the mouse to specified x and y coordinates
mousemoverel
void mousemoverel(x: number, y: number)
relatievly moves the mouse to specified x and y coordinates
mousescroll
void mousescroll(x: number, y: number)
scrolls the mouse with the specified x and y coordinates
keyclick
void keyclick(keycode: number)
clicks the key representing the specified keycode
keypress
void keypress(keycode: number)
presses the key representing the specified keycode
keyrelease
void keyrelease(keycode: number)
releases the key representing the specified keycode
iskeydown
bool iskeydown(keycode: number)
returns whenever the key representing the specified keycode is down or not
iskeytoggled
bool iskeytoggled(keycode: number)
returns whenever the key representing the specified keycode is toggled or not