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.


TClient.Clear

procedure TClient.Clear();

Clears the client canvas.

Example:

Client.Clear();

Client.LoseFocus()

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

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


TClient.IsInputEnabled

function TClient.IsInputEnabled(): Boolean;

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

Example:

WriteLm Client.IsInputEnabled();

TClient.DisableRealInput

procedure TClient.DisableRealInput();

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

Example:

Client.DisableRealInput();

TClient.EnableRealInput

procedure TClient.EnableRealInput();

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

Example:

Client.EnableRealInput();

TClient.InjectInput

procedure TClient.InjectInput();

Injects the client with one of the fake input tools:

  • RemoteInput

  • WaspInput

Example:

Client.InjectInput();