Skip to content

Commit

Permalink
Merge pull request #368 from go-vgo/bitmap-pr
Browse files Browse the repository at this point in the history
Update Document and version
  • Loading branch information
vcaesar authored Sep 17, 2021
2 parents cb4f0d1 + 4dcdfe7 commit a7dc7e5
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 30 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
24 changes: 12 additions & 12 deletions docs/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -57,7 +57,7 @@

## [Event](#Event)

##### [LEvent](#LEvent) (Equivalent to AddEvent, Wno-deprecated)
<!-- ##### [LEvent](#LEvent) (Equivalent to AddEvent, Wno-deprecated) -->
##### [AddEvent](#AddEvent)
##### [StopEvent](#StopEvent)

Expand All @@ -71,7 +71,7 @@
##### [GetActive](#GetActive)
##### [SetHandle](#SetHandle)
##### [GetHandle](#GetHandle)
##### [GetBHandle](#GetHandle)
<!-- ##### [GetBHandle](#GetHandle) -->
##### [GetTitle](#GetTitle)
##### [GetPID](#GetPID)
##### [Pids](#Pids)
Expand Down Expand Up @@ -126,24 +126,24 @@ 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.
string - The string to send. -->

### <h3 id="TypeStrDelay">.TypeStrDelay(string, cpm)</h3>
### <h3 id="TypeStr">.TypeStr(string)</h3>

#### Arguments:

string - The string to send.
cpm - Characters per minute.

### <h3 id="TypeStr">.TypeStr(string)</h3>
### <h3 id="TypeStrDelay">.TypeStrDelay(string, cpm)</h3>

#### Arguments:

string - The string to send.
cpm - Characters per minute.

### <h3 id="WriteAll">.WriteAll(text string)</h3>

Expand Down Expand Up @@ -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:

Expand Down
25 changes: 13 additions & 12 deletions docs/doc_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -59,7 +59,7 @@

## [事件](#Event)

##### [LEvent](#AddEvent) (相当于 AddEvent, 废弃 API)
<!-- ##### [LEvent](#AddEvent) (相当于 AddEvent, 废弃 API) -->
##### [AddEvent](#AddEvent)
##### [StopEvent](#StopEvent)

Expand All @@ -73,7 +73,7 @@
##### [GetActive](#GetActive)
##### [SetHandle](#SetHandle)
##### [GetHandle](#GetHandle)
##### [GetBHandle](#GetHandle)
<!-- ##### [GetBHandle](#GetHandle) -->
##### [GetTitle](#GetTitle)
##### [GetPID](#GetPID)
##### [Pids](#Pids)
Expand Down Expand Up @@ -131,24 +131,25 @@ 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.
string - The string to send. -->

### <h3 id="TypeStrDelay">.TypeStrDelay(string, cpm)</h3>
### <h3 id="TypeStr">.TypeStr(string)</h3>

#### 参数:

string - The string to send.
cpm - Characters per minute.

### <h3 id="TypeStr">.TypeStr(string)</h3>

### <h3 id="TypeStrDelay">.TypeStrDelay(string, cpm)</h3>

#### 参数:

string - The string to send.
cpm - Characters per minute.

### <h3 id="WriteAll">.WriteAll(text string)</h3>

Expand Down Expand Up @@ -345,7 +346,7 @@ robotgo.ScrollMouse(50, "down")
Gets part or all of the screen.

GoCaptureScreen Returns a go struct
Capture_Screen (废弃)
<!-- Capture_Screen (废弃) -->

#### 参数:

Expand Down
4 changes: 2 additions & 2 deletions key/keycode_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ struct XSpecialCharacterMapping XSpecialCharacterTable[] = {
{'@', XK_at},
{':', XK_colon},
{';', XK_semicolon},
{'`', XK_grave},
{'{', XK_braceleft},
{'}', XK_braceright},
{'|', XK_bar},
Expand All @@ -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}
};
Expand Down
2 changes: 1 addition & 1 deletion robotgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7dc7e5

Please sign in to comment.