Documentation
¶
Index ¶
- func EnsureTargetPID() error
- type CommandExecutor
- func (e *CommandExecutor) ListKeysCommand() error
- func (e *CommandExecutor) ListMouseButtonsCommand() error
- func (e *CommandExecutor) RunInputCommand(key, action string, durationTicks int64) error
- func (e *CommandExecutor) RunMouseCommand(action string, x, y int, button string, durationTicks int64) error
- func (e *CommandExecutor) RunPingCommand() error
- func (e *CommandExecutor) RunScreenshotCommand(output string, async bool) error
- func (e *CommandExecutor) RunScriptCommand(input string, isFile bool) error
- func (e *CommandExecutor) RunWheelCommand(x, y float64) error
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureTargetPID ¶
func EnsureTargetPID() error
EnsureTargetPID auto-detects the game PID if not already set.
Types ¶
type CommandExecutor ¶
type CommandExecutor struct {
// contains filtered or unexported fields
}
CommandExecutor executes CLI commands via RPC.
func NewCommandExecutor ¶
func NewCommandExecutor() *CommandExecutor
NewCommandExecutor creates a new CommandExecutor.
func (*CommandExecutor) ListKeysCommand ¶
func (e *CommandExecutor) ListKeysCommand() error
ListKeysCommand lists all available key names.
func (*CommandExecutor) ListMouseButtonsCommand ¶
func (e *CommandExecutor) ListMouseButtonsCommand() error
ListMouseButtonsCommand lists all available mouse button names.
func (*CommandExecutor) RunInputCommand ¶
func (e *CommandExecutor) RunInputCommand(key, action string, durationTicks int64) error
RunInputCommand runs an input command.
func (*CommandExecutor) RunMouseCommand ¶
func (e *CommandExecutor) RunMouseCommand(action string, x, y int, button string, durationTicks int64) error
RunMouseCommand runs a mouse command.
func (*CommandExecutor) RunPingCommand ¶
func (e *CommandExecutor) RunPingCommand() error
RunPingCommand runs a ping command to check connection.
func (*CommandExecutor) RunScreenshotCommand ¶
func (e *CommandExecutor) RunScreenshotCommand(output string, async bool) error
RunScreenshotCommand runs a screenshot command.
func (*CommandExecutor) RunScriptCommand ¶
func (e *CommandExecutor) RunScriptCommand(input string, isFile bool) error
RunScriptCommand runs a script from a file path or inline JSON string.
func (*CommandExecutor) RunWheelCommand ¶
func (e *CommandExecutor) RunWheelCommand(x, y float64) error
RunWheelCommand runs a wheel command.
Click to show internal directories.
Click to hide internal directories.