Merge pull request #368 from go-vgo/bitmap-pr

Update Document and version
This commit is contained in:
Evans 2021-09-17 11:38:17 -04:00 committed by GitHub
commit a7dc7e59b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 36 additions and 34 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -15,9 +15,9 @@
<!-- [![Release](https://github-release-version.herokuapp.com/github/go-vgo/robotgo/release.svg?style=flat)](https://github.com/go-vgo/robotgo/releases/latest) -->
<!-- <a href="https://github.com/go-vgo/robotgo/releases"><img src="https://img.shields.io/badge/%20version%20-%206.0.0%20-blue.svg?style=flat-square" alt="Releases"></a> -->
>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)

View File

@ -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).

View File

@ -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)
<!-- ##### [SetKeyboardDelay](#SetKeyDelay) (Equivalent to SetKeyDelay, Wno-deprecated) -->
##### [SetKeyDelay](#SetKeyDelay)
##### [KeyTap](#KeyTap)
##### [KeyToggle](#KeyToggle)
##### [TypeString](#TypeString)
##### [TypeStringDelayed](#TypeStrDelay) (Equivalent to TypeStrDelay, Wno-deprecated)
##### [TypeStrDelay](#TypeStrDelay)
<!-- ##### [TypeString](#TypeString)
##### [TypeStringDelayed](#TypeStrDelay) (Equivalent to TypeStrDelay, Wno-deprecated) -->
##### [TypeStr](#TypeStr)
##### [TypeStrDelay](#TypeStrDelay)
##### [WriteAll](#WriteAll)
##### [ReadAll](#ReadAll)
@ -57,7 +57,7 @@
## [Event](#Event)
##### [LEvent](#LEvent) (Equivalent to AddEvent, Wno-deprecated)
<!-- ##### [LEvent](#LEvent) (Equivalent to AddEvent, Wno-deprecated) -->
##### [AddEvent](#AddEvent)
##### [StopEvent](#StopEvent)
@ -71,7 +71,7 @@
##### [GetActive](#GetActive)
##### [SetHandle](#SetHandle)
##### [GetHandle](#GetHandle)
##### [GetBHandle](#GetHandle)
<!-- ##### [GetBHandle](#GetHandle) -->
##### [GetTitle](#GetTitle)
##### [GetPID](#GetPID)
##### [Pids](#Pids)
@ -126,7 +126,13 @@ modifier (optional, string or array) - Accepts alt, command (mac), control, and
#### Return:
return KeyToggle status
### <h3 id="TypeString">.TypeString(string)</h3>
<!-- ### <h3 id="TypeString">.TypeString(string)</h3>
#### Arguments:
string - The string to send. -->
### <h3 id="TypeStr">.TypeStr(string)</h3>
#### Arguments:
@ -139,12 +145,6 @@ modifier (optional, string or array) - Accepts alt, command (mac), control, and
string - The string to send.
cpm - Characters per minute.
### <h3 id="TypeStr">.TypeStr(string)</h3>
#### Arguments:
string - The string to send.
### <h3 id="WriteAll">.WriteAll(text string)</h3>
#### Arguments:
@ -331,7 +331,7 @@ robotgo.ScrollMouse(50, "down")
Gets part or all of the screen.
GoCaptureScreen Returns a go struct
Capture_Screen (Drop support)
<!-- Capture_Screen (Drop support) -->
#### Arguments:

View File

@ -5,14 +5,14 @@
## [键盘](#Keyboard)
##### [Keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md)
##### [SetKeyboardDelay](#SetKeyDelay) (相当于 SetKeyDelay, 废弃 API)
<!-- ##### [SetKeyboardDelay](#SetKeyDelay) (相当于 SetKeyDelay, 废弃 API) -->
##### [SetKeyDelay](#SetKeyDelay)
##### [KeyTap](#KeyTap)
##### [KeyToggle](#KeyToggle)
##### [TypeString](#TypeString)
##### [TypeStringDelayed](#TypeStrDelay) (相当于 TypeStrDelay, 废弃 API)
##### [TypeStrDelay](#TypeStrDelay)
<!-- ##### [TypeString](#TypeString)
##### [TypeStringDelayed](#TypeStrDelay) (相当于 TypeStrDelay, 废弃 API) -->
##### [TypeStr](#TypeStr)
##### [TypeStrDelay](#TypeStrDelay)
##### [WriteAll](#WriteAll)
##### [ReadAll](#ReadAll)
@ -59,7 +59,7 @@
## [事件](#Event)
##### [LEvent](#AddEvent) (相当于 AddEvent, 废弃 API)
<!-- ##### [LEvent](#AddEvent) (相当于 AddEvent, 废弃 API) -->
##### [AddEvent](#AddEvent)
##### [StopEvent](#StopEvent)
@ -73,7 +73,7 @@
##### [GetActive](#GetActive)
##### [SetHandle](#SetHandle)
##### [GetHandle](#GetHandle)
##### [GetBHandle](#GetHandle)
<!-- ##### [GetBHandle](#GetHandle) -->
##### [GetTitle](#GetTitle)
##### [GetPID](#GetPID)
##### [Pids](#Pids)
@ -131,12 +131,19 @@ modifier (optional, string or array) - Accepts alt, command (mac), control, and
返回 KeyToggle 状态
### <h3 id="TypeString">.TypeString(string)</h3>
<!-- ### <h3 id="TypeString">.TypeString(string)</h3>
#### 参数:
string - The string to send. -->
### <h3 id="TypeStr">.TypeStr(string)</h3>
#### 参数:
string - The string to send.
### <h3 id="TypeStrDelay">.TypeStrDelay(string, cpm)</h3>
#### 参数:
@ -144,12 +151,6 @@ modifier (optional, string or array) - Accepts alt, command (mac), control, and
string - The string to send.
cpm - Characters per minute.
### <h3 id="TypeStr">.TypeStr(string)</h3>
#### 参数:
string - The string to send.
### <h3 id="WriteAll">.WriteAll(text string)</h3>
#### 参数:
@ -345,7 +346,7 @@ robotgo.ScrollMouse(50, "down")
Gets part or all of the screen.
GoCaptureScreen Returns a go struct
Capture_Screen (废弃)
<!-- Capture_Screen (废弃) -->
#### 参数:

View File

@ -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}
};

View File

@ -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