Adição da função Capture
parent
69d0bdf3e8
commit
64d94b13f7
|
@ -284,8 +284,8 @@ func (c *Cli) DrawRect(x, y, w, h int) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (c *Cli) DrawAddText(t string, x, y, w, h int) error {
|
||||
err := c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/draw/addtext?t=%s&x=%d&y=%d&w=%d&h=%d", t, x, y, w, h), nil)
|
||||
func (c *Cli) DrawAddText(t string, x, y int) error {
|
||||
err := c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/draw/addtext?t=%s&x=%d&y=%d", t, x, y), nil)
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -363,6 +363,13 @@ func (c *Cli) WindowPostMsg(w, m string) error {
|
|||
return err
|
||||
}*/
|
||||
|
||||
/***************** Notify Functions *****************/
|
||||
|
||||
func (c *Cli) ScreenCapture(x, y, w, h int, f string) (ret interface{}, err error) {
|
||||
err = c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/screen/capture?x=%d&y=%d&w=%d&h=%d&f=%s", x, y, w, h, f), &ret)
|
||||
return ret, err
|
||||
}
|
||||
|
||||
func NewCli() *Cli {
|
||||
ret := &Cli{ApiCli: api.NewApiCli()}
|
||||
return ret
|
||||
|
|
Loading…
Reference in New Issue