mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Merge pull request #368 from go-vgo/bitmap-pr
Update Document and version
This commit is contained in:
commit
a7dc7e59b1
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
@ -15,9 +15,9 @@
|
||||
<!-- [](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)
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
[](https://github.com/go-vgo/robotgo/releases/latest)
|
||||
[](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).
|
||||
|
||||
|
28
docs/doc.md
28
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)
|
||||
<!-- ##### [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:
|
||||
|
||||
|
@ -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 (废弃) -->
|
||||
|
||||
#### 参数:
|
||||
|
||||
|
@ -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}
|
||||
};
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user