You can import the ready-made example from here: https://eu.eyeauras.net/share/S202402240046520BBKcR6QKL07
HotkeyIsActive to it and bind it to a convenient button (this will be our on/off switch, for example F3), change the activation type to Click/Hold.C# Script action to On Enter.F3, the cursor will move to the center of the primary screen.var sendInputApi = GetService<ISendInputUnstableScriptingApi>(); // needed for input sending
var screenSize = System.Windows.Forms.SystemInformation.PrimaryMonitorSize; // get the size of the primary screen
Log.Info($"Primary monitor size: {screenSize}");
sendInputApi.MouseMoveTo(screenSize.Width / 2, screenSize.Height / 2); // move to the center