diff --git a/bitmap.go b/bitmap.go index 4ee9f16..75849ad 100644 --- a/bitmap.go +++ b/bitmap.go @@ -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) diff --git a/test/main.go b/test/main.go index 27a6180..2ede969 100644 --- a/test/main.go +++ b/test/main.go @@ -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)