mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
Update key example code
This commit is contained in:
parent
2faf30a559
commit
c86926da97
@ -19,14 +19,14 @@ import (
|
|||||||
|
|
||||||
func typeStr() {
|
func typeStr() {
|
||||||
// importing "Hello World"
|
// importing "Hello World"
|
||||||
robotgo.TypeStr("Hello World!")
|
robotgo.TypeStr("Hello World!", 1.0)
|
||||||
|
|
||||||
robotgo.TypeStr("だんしゃり")
|
robotgo.TypeStr("だんしゃり")
|
||||||
robotgo.MicroSleep(10.2)
|
robotgo.MicroSleep(10.2)
|
||||||
|
|
||||||
robotgo.TypeStr("Hi galaxy. こんにちは世界.")
|
robotgo.TypeStr("Hi galaxy. こんにちは世界.")
|
||||||
robotgo.Sleep(2)
|
robotgo.Sleep(2)
|
||||||
robotgo.TypeString("So, hi, bye!")
|
// robotgo.TypeString("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))
|
||||||
@ -85,7 +85,7 @@ func keyToggle() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func cilp() {
|
func cilp() {
|
||||||
robotgo.TypeString("en")
|
// robotgo.TypeString("en")
|
||||||
|
|
||||||
// write string to clipboard
|
// write string to clipboard
|
||||||
robotgo.WriteAll("テストする")
|
robotgo.WriteAll("テストする")
|
||||||
|
Loading…
Reference in New Issue
Block a user