Fake Input

Fake Input is achieved by external tools, usually by injecting the client.

Fake input is what WaspLib uses that allows you to use your mouse and keyboard freely while botting.

There’s 2 versions of fake input:

  • RemoteInput for java based clients

  • wasp-input for the official CPP client

If you wish to completely disable fake input you can do so by adding the following compiler directive before you include WaspLib in your script:

{$DEFINE WL_DISABLE_FAKE_INPUT}

You can find remote input source code here: https://github.com/Brandon-T/RemoteInput And wasp-input here: https://github.com/WaspScripts/wasp-input


TRemoteInput

Main record used to interact with the remote input plugin.


TRemoteInput.Setup

procedure TRemoteInput.Setup();

Internal method used to setup TRemoteInput. This is automatically called for you on the RemoteInput variable.


RemoteInput variable

Global TRemoteInput variable.


TWaspInput

Main record used to interact with the wasp input plugin.


TWaspInput.Setup

procedure TWaspInput.Setup();

Internal method used to setup TWaspInput. This is automatically called for you on the WaspInput variable.


TRSClient.Clear

procedure TRSClient.Clear();

Clears the client canvas.

Example:

RSClient.Clear();

RSClient.LoseFocus()

procedure TRSClient.LoseFocus();
procedure TRSClient.LoseFocus(delay: Int32);

Loses focus if available. Maybe useful for antiban. You can optionally delay losing focus by passing in a delay.


TRSClient.IsInputEnabled

function TRSClient.IsInputEnabled(): Boolean;

Returns True/False if the user REAL input is enabled/disabled, fully or partially, on the client.

Example:

WriteLm RSClient.IsInputEnabled();

TRSClient.DisableRealInput

procedure TRSClient.DisableRealInput();

Disables the user real input on the client for both the mouse and keyboard.

Example:

RSClient.DisableRealInput();

TRSClient.EnableRealInput

procedure TRSClient.EnableRealInput();

Enables the user real input on the client for both the mouse and keyboard.

Example:

RSClient.EnableRealInput();

TRSClient.InjectInput

procedure TRSClient.InjectInput();

Injects the client with one of the fake input tools:

  • RemoteInput

  • WaspInput

Example:

RSClient.InjectInput();