Zudoku
Unikraft Cloud noVNC Plugin API

Pointer

Server

POST
http://localhost:8080
/pointer/click

Click a button of the pointer, optionally at a position.

Request Body

The request to click the pointer.
x
​integer · uint32

(OPTIONAL) The position to move the pointer to before the click. When omitted, the click is at the current position of the pointer.

y
​integer · uint32

(OPTIONAL) See x. Both or neither of x and y must be set.

button
​string · enum

The button to click.

Enum values:
left
middle
right
Default: left
count
​integer · uint32 · min: 1 · max: 10

The number of clicks, for example 2 for a double click.

Default: 1

Responses

An unexpected error response.

The position of the pointer after the operation.
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
​object · required

The response data for this request.

op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

A list of errors which may have occurred during the request.


POST
http://localhost:8080
/pointer/move

Move the pointer to a position on the screen.

Request Body

The request to move the pointer, in pixels from the top-left corner.
x
​integer · uint32 · required
y
​integer · uint32 · required

Responses

An unexpected error response.

The position of the pointer after the operation.
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
​object · required

The response data for this request.

op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

A list of errors which may have occurred during the request.