mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Removed drop api example code and Update README.md
This commit is contained in:
parent
9969a331a6
commit
f04e5bf6a3
@ -149,7 +149,7 @@ import (
|
||||
func main() {
|
||||
robotgo.TypeStr("Hello World")
|
||||
robotgo.TypeStr("だんしゃり", 1.0)
|
||||
// robotgo.TypeString("テストする")
|
||||
// robotgo.TypeStr("テストする")
|
||||
|
||||
robotgo.TypeStr("Hi galaxy. こんにちは世界.")
|
||||
robotgo.Sleep(1)
|
||||
@ -158,7 +158,7 @@ func main() {
|
||||
// robotgo.UnicodeType(ustr)
|
||||
|
||||
robotgo.KeyTap("enter")
|
||||
// robotgo.TypeString("en")
|
||||
// robotgo.TypeStr("en")
|
||||
robotgo.KeyTap("i", "alt", "command")
|
||||
|
||||
arr := []string{"alt", "command"}
|
||||
@ -322,7 +322,7 @@ func main() {
|
||||
|
||||
## CrossCompiling
|
||||
|
||||
##### Windows64 to win32
|
||||
##### Windows64 to windows32
|
||||
```Go
|
||||
SET CGO_ENABLED=1
|
||||
SET GOARCH=386
|
||||
@ -331,7 +331,7 @@ go build main.go
|
||||
|
||||
#### Other to windows
|
||||
|
||||
##### Install Requirements (Ubuntu):
|
||||
Install Requirements (Ubuntu):
|
||||
```bash
|
||||
sudo apt install gcc-multilib
|
||||
sudo apt install gcc-mingw-w64
|
||||
|
10
README_zh.md
10
README_zh.md
@ -147,7 +147,7 @@ import (
|
||||
func main() {
|
||||
robotgo.TypeStr("Hello World. Winter is coming!")
|
||||
robotgo.TypeStr("だんしゃり", 1.0)
|
||||
// robotgo.TypeString("テストする")
|
||||
// robotgo.TypeStr("テストする")
|
||||
|
||||
robotgo.TypeStr("Hi galaxy. こんにちは世界.")
|
||||
robotgo.Sleep(1)
|
||||
@ -156,7 +156,7 @@ func main() {
|
||||
// robotgo.UnicodeType(ustr)
|
||||
|
||||
robotgo.KeyTap("enter")
|
||||
// robotgo.TypeString("en")
|
||||
// robotgo.TypeStr("en")
|
||||
robotgo.KeyTap("i", "alt", "command")
|
||||
|
||||
arr := []string{"alt", "command"}
|
||||
@ -319,7 +319,7 @@ func main() {
|
||||
|
||||
## CrossCompiling
|
||||
|
||||
##### Windows64 to win32
|
||||
##### Windows64 to windows32
|
||||
```Go
|
||||
SET CGO_ENABLED=1
|
||||
SET GOARCH=386
|
||||
@ -328,14 +328,14 @@ go build main.go
|
||||
|
||||
#### Other to windows
|
||||
|
||||
##### Install Requirements (Ubuntu):
|
||||
Install Requirements (Ubuntu):
|
||||
```bash
|
||||
sudo apt install gcc-multilib
|
||||
sudo apt install gcc-mingw-w64
|
||||
sudo apt install libz-mingw-w64-dev
|
||||
```
|
||||
|
||||
##### Build the binary:
|
||||
Build the binary:
|
||||
|
||||
```Go
|
||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -x ./
|
||||
|
@ -36,13 +36,13 @@ import (
|
||||
|
||||
func main() {
|
||||
robotgo.TypeStr("Hello World")
|
||||
// robotgo.TypeString("だんしゃり")
|
||||
// robotgo.TypeStr("だんしゃり")
|
||||
robotgo.TypeStr("だんしゃり")
|
||||
// ustr := uint32(robotgo.CharCodeAt("だんしゃり", 0))
|
||||
// robotgo.UnicodeType(ustr)
|
||||
|
||||
robotgo.KeyTap("enter")
|
||||
robotgo.TypeString("en")
|
||||
robotgo.TypeStr("en")
|
||||
robotgo.KeyTap("i", "alt", "command")
|
||||
arr := []string{"alt", "command"}
|
||||
robotgo.KeyTap("i", arr)
|
||||
|
@ -26,7 +26,7 @@ func typeStr() {
|
||||
|
||||
robotgo.TypeStr("Hi galaxy. こんにちは世界.")
|
||||
robotgo.Sleep(2)
|
||||
// robotgo.TypeString("So, hi, bye!")
|
||||
// robotgo.TypeStr("So, hi, bye!")
|
||||
robotgo.MilliSleep(100)
|
||||
|
||||
ustr := uint32(robotgo.CharCodeAt("So, hi, bye!", 0))
|
||||
@ -86,7 +86,7 @@ func keyToggle() {
|
||||
}
|
||||
|
||||
func cilp() {
|
||||
// robotgo.TypeString("en")
|
||||
// robotgo.TypeStr("en")
|
||||
|
||||
// write string to clipboard
|
||||
e := robotgo.WriteAll("テストする")
|
||||
|
@ -41,12 +41,12 @@ func aRobotgo() {
|
||||
color := robotgo.GetPixelColor(100, 200)
|
||||
fmt.Println("color@@@", color)
|
||||
|
||||
robotgo.TypeString("Hello World")
|
||||
robotgo.TypeStr("Hello World")
|
||||
// robotgo.KeyTap("a", "control")
|
||||
robotgo.KeyTap("f1", "control")
|
||||
// robotgo.KeyTap("enter")
|
||||
// robotgo.KeyToggle("enter", "down")
|
||||
robotgo.TypeString("en")
|
||||
robotgo.TypeStr("en")
|
||||
|
||||
abitmap := robotgo.CaptureScreen()
|
||||
fmt.Println("all...", abitmap)
|
||||
|
Loading…
Reference in New Issue
Block a user