> For the complete documentation index, see [llms.txt](https://fluxusrbx.gitbook.io/fluxus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fluxusrbx.gitbook.io/fluxus/input.md).

# Input

## \<bool> iswindowactive(\<void>)

Returns if ROBLOX is focused.

## \<void> keypress(\<int> keycode)

{% hint style="info" %}
Keycodes can be found at: <https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes>
{% endhint %}

Simulates a keycode press with the first argument.&#x20;

## \<void> mouse1click(\<void>)

{% hint style="danger" %}
This will only happen if the ROBLOX window is active.
{% endhint %}

Simulates a full left mouse click.

## \<void> mouse1press(\<void>)

{% hint style="danger" %}
This will only happen if the ROBLOX window is active.
{% endhint %}

Simulates a full left mouse click without releasing.

## \<void> mouse1release(\<void>)

{% hint style="danger" %}
This will only happen if the ROBLOX window is active.
{% endhint %}

Simulates a full left mouse release.

## \<void> mouse2click(\<void>)

{% hint style="danger" %}
This will only happen if the ROBLOX window is active.
{% endhint %}

Simulates a full right mouse click.

## \<void> mouse2press(\<void>)

{% hint style="danger" %}
This will only happen if the ROBLOX window is active.
{% endhint %}

Clicks down on the right mouse button.

## \<void> mouse2release(\<void>)

{% hint style="danger" %}
This will only happen if the ROBLOX window is active.
{% endhint %}

Simulates a full right mouse release.
