mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Update godoc and test
This commit is contained in:
parent
34fc3ffb38
commit
c466829ded
@ -289,12 +289,14 @@ func OpenBitmap(gpath string, args ...int) C.MMBitmapRef {
|
||||
return bit
|
||||
}
|
||||
|
||||
// Deprecated: use the BitmapFromStr(),
|
||||
//
|
||||
// BitmapStr bitmap from string
|
||||
func BitmapStr(str string) C.MMBitmapRef {
|
||||
return BitmapFromStr(str)
|
||||
}
|
||||
|
||||
// BitmapFromStr bitmap from string
|
||||
// BitmapFromStr read bitmap from the string
|
||||
func BitmapFromStr(str string) C.MMBitmapRef {
|
||||
cs := C.CString(str)
|
||||
bit := C.bitmap_from_string(cs)
|
||||
|
@ -29,7 +29,8 @@ func aRobotgo() {
|
||||
robotgo.Move(x, y)
|
||||
robotgo.Move(100, 200)
|
||||
|
||||
robotgo.MouseToggle("up")
|
||||
robotgo.Toggle("left")
|
||||
robotgo.Toggle("left", "up")
|
||||
|
||||
for i := 0; i < 1080; i += 1000 {
|
||||
fmt.Println(i)
|
||||
|
Loading…
Reference in New Issue
Block a user