Documentation
¶
Index ¶
- Constants
- type PageActionEvent
- type PageActions
- func (p *PageActions) Close()
- func (p *PageActions) DoubleClick(x, y int)
- func (p *PageActions) Events() []PageActionEvent
- func (p *PageActions) HoldKey(key string, duration float64)
- func (p *PageActions) Key(key string)
- func (p *PageActions) LastFrame() []byte
- func (p *PageActions) LeftClick(x, y int, modifiers string)
- func (p *PageActions) LeftClickDrag(sx, sy, ex, ey int)
- func (p *PageActions) LeftMouseDown(x, y int)
- func (p *PageActions) LeftMouseUp(x, y int)
- func (p *PageActions) MiddleClick(x, y int)
- func (p *PageActions) MouseMove(x, y int)
- func (p *PageActions) RightClick(x, y int)
- func (p *PageActions) Scroll(x, y int, direction string, amount int)
- func (p *PageActions) SetLastFrame(frame []byte)
- func (p *PageActions) TripleClick(x, y int)
- func (p *PageActions) TypeText(text string)
- func (p *PageActions) Wait()
- type Plugin
Constants ¶
View Source
const ( MouseButtonLeft = 0 MouseButtonMiddle = 1 MouseButtonRight = 2 )
View Source
const ( PluginTitle = "rtp-agent.plugins.browser" PluginVersion = "v0.1.6" PluginPackage = "rtp-agent.plugins.browser" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageActionEvent ¶ added in v0.0.15
type PageActionEvent struct {
Type string
X int
Y int
Button int
Down bool
ClickCount int
Modifiers string
DeltaX int
DeltaY int
Text string
Duration float64
}
PageActionEvent is the provider-agnostic input event emitted by PageActions.
type PageActions ¶
type PageActions struct {
// contains filtered or unexported fields
}
PageActions records the typed input API expected by computer-use tools.
func NewPageActions ¶
func NewPageActions() *PageActions
func (*PageActions) Close ¶
func (p *PageActions) Close()
func (*PageActions) DoubleClick ¶
func (p *PageActions) DoubleClick(x, y int)
func (*PageActions) Events ¶ added in v0.0.15
func (p *PageActions) Events() []PageActionEvent
func (*PageActions) HoldKey ¶
func (p *PageActions) HoldKey(key string, duration float64)
func (*PageActions) Key ¶
func (p *PageActions) Key(key string)
func (*PageActions) LastFrame ¶
func (p *PageActions) LastFrame() []byte
func (*PageActions) LeftClick ¶
func (p *PageActions) LeftClick(x, y int, modifiers string)
func (*PageActions) LeftClickDrag ¶
func (p *PageActions) LeftClickDrag(sx, sy, ex, ey int)
func (*PageActions) LeftMouseDown ¶
func (p *PageActions) LeftMouseDown(x, y int)
func (*PageActions) LeftMouseUp ¶
func (p *PageActions) LeftMouseUp(x, y int)
func (*PageActions) MiddleClick ¶
func (p *PageActions) MiddleClick(x, y int)
func (*PageActions) MouseMove ¶
func (p *PageActions) MouseMove(x, y int)
func (*PageActions) RightClick ¶
func (p *PageActions) RightClick(x, y int)
func (*PageActions) SetLastFrame ¶ added in v0.0.15
func (p *PageActions) SetLastFrame(frame []byte)
func (*PageActions) TripleClick ¶
func (p *PageActions) TripleClick(x, y int)
func (*PageActions) TypeText ¶
func (p *PageActions) TypeText(text string)
func (*PageActions) Wait ¶
func (p *PageActions) Wait()
Click to show internal directories.
Click to hide internal directories.