Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.05 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.05 KB

RobotgoServer

GitHub release

Features

  • Remotely invoke the Server machine Robotgo method via WebSocket
  • Monitor mouse selection text notification WebSocket

🦄 Usage

Download the binary file for the corresponding operating system from the release page

# MaxOS/Linux
sudo mv robotgo_server_xx_xxx /usr/local/bin/robotgo_server
chmod +x /usr/local/bin/robotgo_server
robotgo_server -p 8080

# Windows
# double click robotgo_server_xx_xxx_xx_xxx.exe

WebSocket client test

# pnpm add -g wscat
wscat -c ws://localhost:8080

# Call robotgo.Move(100, 100)
> {"jsonrpc":"2.0","method":"Move","params":[100,100]}

# Mouse select text notify
< {"jsonrpc":"2.0","method":"onSelectText","params":{"text":"# onSelectText","x":368,"y":730}}

All callable methods

See the rpc-map.go and go-vgo/robotgo