Removed drop api example code and Update README.md

This commit is contained in:
vcaesar 2021-08-27 12:51:57 -04:00
parent 9969a331a6
commit f04e5bf6a3
5 changed files with 15 additions and 15 deletions

View File

@ -149,7 +149,7 @@ import (
func main() { func main() {
robotgo.TypeStr("Hello World") robotgo.TypeStr("Hello World")
robotgo.TypeStr("だんしゃり", 1.0) robotgo.TypeStr("だんしゃり", 1.0)
// robotgo.TypeString("テストする") // robotgo.TypeStr("テストする")
robotgo.TypeStr("Hi galaxy. こんにちは世界.") robotgo.TypeStr("Hi galaxy. こんにちは世界.")
robotgo.Sleep(1) robotgo.Sleep(1)
@ -158,7 +158,7 @@ func main() {
// robotgo.UnicodeType(ustr) // robotgo.UnicodeType(ustr)
robotgo.KeyTap("enter") robotgo.KeyTap("enter")
// robotgo.TypeString("en") // robotgo.TypeStr("en")
robotgo.KeyTap("i", "alt", "command") robotgo.KeyTap("i", "alt", "command")
arr := []string{"alt", "command"} arr := []string{"alt", "command"}
@ -322,7 +322,7 @@ func main() {
## CrossCompiling ## CrossCompiling
##### Windows64 to win32 ##### Windows64 to windows32
```Go ```Go
SET CGO_ENABLED=1 SET CGO_ENABLED=1
SET GOARCH=386 SET GOARCH=386
@ -331,7 +331,7 @@ go build main.go
#### Other to windows #### Other to windows
##### Install Requirements (Ubuntu): Install Requirements (Ubuntu):
```bash ```bash
sudo apt install gcc-multilib sudo apt install gcc-multilib
sudo apt install gcc-mingw-w64 sudo apt install gcc-mingw-w64

View File

@ -147,7 +147,7 @@ import (
func main() { func main() {
robotgo.TypeStr("Hello World. Winter is coming!") robotgo.TypeStr("Hello World. Winter is coming!")
robotgo.TypeStr("だんしゃり", 1.0) robotgo.TypeStr("だんしゃり", 1.0)
// robotgo.TypeString("テストする") // robotgo.TypeStr("テストする")
robotgo.TypeStr("Hi galaxy. こんにちは世界.") robotgo.TypeStr("Hi galaxy. こんにちは世界.")
robotgo.Sleep(1) robotgo.Sleep(1)
@ -156,7 +156,7 @@ func main() {
// robotgo.UnicodeType(ustr) // robotgo.UnicodeType(ustr)
robotgo.KeyTap("enter") robotgo.KeyTap("enter")
// robotgo.TypeString("en") // robotgo.TypeStr("en")
robotgo.KeyTap("i", "alt", "command") robotgo.KeyTap("i", "alt", "command")
arr := []string{"alt", "command"} arr := []string{"alt", "command"}
@ -319,7 +319,7 @@ func main() {
## CrossCompiling ## CrossCompiling
##### Windows64 to win32 ##### Windows64 to windows32
```Go ```Go
SET CGO_ENABLED=1 SET CGO_ENABLED=1
SET GOARCH=386 SET GOARCH=386
@ -328,14 +328,14 @@ go build main.go
#### Other to windows #### Other to windows
##### Install Requirements (Ubuntu): Install Requirements (Ubuntu):
```bash ```bash
sudo apt install gcc-multilib sudo apt install gcc-multilib
sudo apt install gcc-mingw-w64 sudo apt install gcc-mingw-w64
sudo apt install libz-mingw-w64-dev sudo apt install libz-mingw-w64-dev
``` ```
##### Build the binary: Build the binary:
```Go ```Go
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -x ./ GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -x ./

View File

@ -36,13 +36,13 @@ import (
func main() { func main() {
robotgo.TypeStr("Hello World") robotgo.TypeStr("Hello World")
// robotgo.TypeString("だんしゃり") // robotgo.TypeStr("だんしゃり")
robotgo.TypeStr("だんしゃり") robotgo.TypeStr("だんしゃり")
// ustr := uint32(robotgo.CharCodeAt("だんしゃり", 0)) // ustr := uint32(robotgo.CharCodeAt("だんしゃり", 0))
// robotgo.UnicodeType(ustr) // robotgo.UnicodeType(ustr)
robotgo.KeyTap("enter") robotgo.KeyTap("enter")
robotgo.TypeString("en") robotgo.TypeStr("en")
robotgo.KeyTap("i", "alt", "command") robotgo.KeyTap("i", "alt", "command")
arr := []string{"alt", "command"} arr := []string{"alt", "command"}
robotgo.KeyTap("i", arr) robotgo.KeyTap("i", arr)

View File

@ -26,7 +26,7 @@ func typeStr() {
robotgo.TypeStr("Hi galaxy. こんにちは世界.") robotgo.TypeStr("Hi galaxy. こんにちは世界.")
robotgo.Sleep(2) robotgo.Sleep(2)
// robotgo.TypeString("So, hi, bye!") // robotgo.TypeStr("So, hi, bye!")
robotgo.MilliSleep(100) robotgo.MilliSleep(100)
ustr := uint32(robotgo.CharCodeAt("So, hi, bye!", 0)) ustr := uint32(robotgo.CharCodeAt("So, hi, bye!", 0))
@ -86,7 +86,7 @@ func keyToggle() {
} }
func cilp() { func cilp() {
// robotgo.TypeString("en") // robotgo.TypeStr("en")
// write string to clipboard // write string to clipboard
e := robotgo.WriteAll("テストする") e := robotgo.WriteAll("テストする")

View File

@ -41,12 +41,12 @@ func aRobotgo() {
color := robotgo.GetPixelColor(100, 200) color := robotgo.GetPixelColor(100, 200)
fmt.Println("color@@@", color) fmt.Println("color@@@", color)
robotgo.TypeString("Hello World") robotgo.TypeStr("Hello World")
// robotgo.KeyTap("a", "control") // robotgo.KeyTap("a", "control")
robotgo.KeyTap("f1", "control") robotgo.KeyTap("f1", "control")
// robotgo.KeyTap("enter") // robotgo.KeyTap("enter")
// robotgo.KeyToggle("enter", "down") // robotgo.KeyToggle("enter", "down")
robotgo.TypeString("en") robotgo.TypeStr("en")
abitmap := robotgo.CaptureScreen() abitmap := robotgo.CaptureScreen()
fmt.Println("all...", abitmap) fmt.Println("all...", abitmap)