Add input handling functionality to the agent. Implement API endpoints for mouse click and text input, and update the web interface to support video capture and interaction features.
This commit is contained in:
@@ -38,4 +38,19 @@ type ExecResponse struct {
|
||||
type CapturedImage struct {
|
||||
ContentType string
|
||||
Data []byte
|
||||
Left int
|
||||
Top int
|
||||
Width int
|
||||
Height int
|
||||
}
|
||||
|
||||
type ClickRequest struct {
|
||||
X int `json:"x"`
|
||||
Y int `json:"y"`
|
||||
Button string `json:"button"`
|
||||
Monitor int `json:"monitor"`
|
||||
}
|
||||
|
||||
type TextRequest struct {
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user