From c466829dedd9ec621737ab5f375690f309f7fd73 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 28 Nov 2021 13:12:06 -0400 Subject: [PATCH] Update godoc and test --- bitmap.go | 4 +++- test/main.go | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bitmap.go b/bitmap.go index 4ee9f163..75849ad3 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 27a6180f..2ede969d 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)