diff --git a/.gitignore b/.gitignore index c97edc9f..c00b3573 100644 --- a/.gitignore +++ b/.gitignore @@ -95,3 +95,4 @@ examples/bitmap/imgToBitmap/test_2.jpeg examples/bitmap/imgToBitmap/test.png examples/bitmap/imgToBitmap/test_7.jpeg robot_img.png +examples/bitmap/bitmapTobytes/out.jpg diff --git a/README.md b/README.md index d8a0c448..9c3b4c8a 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ - >Golang Desktop Automation. Control the mouse, keyboard, bitmap, read the screen, Window Handle and global event listener. + >Golang Desktop Automation. Control the mouse, keyboard, bitmap and image, read the screen, process, Window Handle and global event listener. -RobotGo supports Mac, Windows, and Linux(X11). +RobotGo supports Mac, Windows, and Linux(X11); and robotgo supports arm64 and x86-amd64. [Chinese Simplified](https://github.com/go-vgo/robotgo/blob/master/README_zh.md) diff --git a/README_zh.md b/README_zh.md index cf85f8aa..b2a84710 100644 --- a/README_zh.md +++ b/README_zh.md @@ -9,7 +9,7 @@ [![GitHub release](https://img.shields.io/github/release/go-vgo/robotgo.svg)](https://github.com/go-vgo/robotgo/releases/latest) [![Join the chat at https://gitter.im/go-vgo/robotgo](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-vgo/robotgo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - >Golang 跨平台自动化系统,控制键盘鼠标位图和读取屏幕,窗口句柄以及全局事件监听 + >Golang 跨平台自动化系统,控制键盘、鼠标、位图、图像、读取屏幕,进程、窗口句柄以及全局事件监听 RobotGo 支持 Mac, Windows, and Linux(X11). diff --git a/docs/doc.md b/docs/doc.md index b5fe095f..cca93699 100644 --- a/docs/doc.md +++ b/docs/doc.md @@ -5,14 +5,14 @@ ## [Keyboard](#Keyboard) ##### [Keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md) -##### [SetKeyboardDelay](#SetKeyDelay) (Equivalent to SetKeyDelay, Wno-deprecated) + ##### [SetKeyDelay](#SetKeyDelay) ##### [KeyTap](#KeyTap) ##### [KeyToggle](#KeyToggle) -##### [TypeString](#TypeString) -##### [TypeStringDelayed](#TypeStrDelay) (Equivalent to TypeStrDelay, Wno-deprecated) -##### [TypeStrDelay](#TypeStrDelay) + ##### [TypeStr](#TypeStr) +##### [TypeStrDelay](#TypeStrDelay) ##### [WriteAll](#WriteAll) ##### [ReadAll](#ReadAll) @@ -57,7 +57,7 @@ ## [Event](#Event) -##### [LEvent](#LEvent) (Equivalent to AddEvent, Wno-deprecated) + ##### [AddEvent](#AddEvent) ##### [StopEvent](#StopEvent) @@ -71,7 +71,7 @@ ##### [GetActive](#GetActive) ##### [SetHandle](#SetHandle) ##### [GetHandle](#GetHandle) -##### [GetBHandle](#GetHandle) + ##### [GetTitle](#GetTitle) ##### [GetPID](#GetPID) ##### [Pids](#Pids) @@ -126,24 +126,24 @@ modifier (optional, string or array) - Accepts alt, command (mac), control, and #### Return: return KeyToggle status -###

.TypeString(string)

+ -###

.TypeStrDelay(string, cpm)

+###

.TypeStr(string)

#### Arguments: string - The string to send. - cpm - Characters per minute. -###

.TypeStr(string)

+###

.TypeStrDelay(string, cpm)

#### Arguments: string - The string to send. + cpm - Characters per minute. ###

.WriteAll(text string)

@@ -331,7 +331,7 @@ robotgo.ScrollMouse(50, "down") Gets part or all of the screen. GoCaptureScreen Returns a go struct - Capture_Screen (Drop support) + #### Arguments: diff --git a/docs/doc_zh.md b/docs/doc_zh.md index 774df827..1f7e4390 100644 --- a/docs/doc_zh.md +++ b/docs/doc_zh.md @@ -5,14 +5,14 @@ ## [键盘](#Keyboard) ##### [Keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md) -##### [SetKeyboardDelay](#SetKeyDelay) (相当于 SetKeyDelay, 废弃 API) + ##### [SetKeyDelay](#SetKeyDelay) ##### [KeyTap](#KeyTap) ##### [KeyToggle](#KeyToggle) -##### [TypeString](#TypeString) -##### [TypeStringDelayed](#TypeStrDelay) (相当于 TypeStrDelay, 废弃 API) -##### [TypeStrDelay](#TypeStrDelay) + ##### [TypeStr](#TypeStr) +##### [TypeStrDelay](#TypeStrDelay) ##### [WriteAll](#WriteAll) ##### [ReadAll](#ReadAll) @@ -59,7 +59,7 @@ ## [事件](#Event) -##### [LEvent](#AddEvent) (相当于 AddEvent, 废弃 API) + ##### [AddEvent](#AddEvent) ##### [StopEvent](#StopEvent) @@ -73,7 +73,7 @@ ##### [GetActive](#GetActive) ##### [SetHandle](#SetHandle) ##### [GetHandle](#GetHandle) -##### [GetBHandle](#GetHandle) + ##### [GetTitle](#GetTitle) ##### [GetPID](#GetPID) ##### [Pids](#Pids) @@ -131,24 +131,25 @@ modifier (optional, string or array) - Accepts alt, command (mac), control, and 返回 KeyToggle 状态 -###

.TypeString(string)

+ -###

.TypeStrDelay(string, cpm)

+###

.TypeStr(string)

#### 参数: string - The string to send. - cpm - Characters per minute. -###

.TypeStr(string)

+ +###

.TypeStrDelay(string, cpm)

#### 参数: string - The string to send. + cpm - Characters per minute. ###

.WriteAll(text string)

@@ -345,7 +346,7 @@ robotgo.ScrollMouse(50, "down") Gets part or all of the screen. GoCaptureScreen Returns a go struct - Capture_Screen (废弃) + #### 参数: diff --git a/key/keycode_c.h b/key/keycode_c.h index 9fd0d369..8e54dcba 100644 --- a/key/keycode_c.h +++ b/key/keycode_c.h @@ -46,7 +46,6 @@ struct XSpecialCharacterMapping XSpecialCharacterTable[] = { {'@', XK_at}, {':', XK_colon}, {';', XK_semicolon}, - {'`', XK_grave}, {'{', XK_braceleft}, {'}', XK_braceright}, {'|', XK_bar}, @@ -55,10 +54,11 @@ struct XSpecialCharacterMapping XSpecialCharacterTable[] = { {')', XK_parenright}, {' ', XK_space}, {'/', XK_slash}, + {'\\', XK_backslash}, + {'`', XK_grave}, {'"', XK_quoteright}, {'\'', XK_quotedbl}, // {'\'', XK_quoteright}, - {'\\', XK_backslash}, {'\t', XK_Tab}, {'\n', XK_Return} }; diff --git a/robotgo.go b/robotgo.go index 5ac3eddd..59d5bc66 100644 --- a/robotgo.go +++ b/robotgo.go @@ -72,7 +72,7 @@ import ( const ( // Version get the robotgo version - Version = "v0.99.1.1189, MT. Rainier!" + Version = "v0.100.0.1189, MT. Baker!" ) // GetVersion get the robotgo version