mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-04 16:03:54 +00:00
update typestr, godoc and version
This commit is contained in:
parent
fdddd73837
commit
3dce490b76
14
robotgo.go
14
robotgo.go
@ -66,7 +66,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
version string = "v0.49.0.562, Olympus Mons!"
|
version string = "v0.49.0.581, Olympus Mons!"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
@ -413,7 +413,7 @@ func MoveSmooth(x, y int, args ...interface{}) bool {
|
|||||||
return bool(cbool)
|
return bool(cbool)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetMousePos get mouse portion
|
// GetMousePos get mouse's portion
|
||||||
func GetMousePos() (int, int) {
|
func GetMousePos() (int, int) {
|
||||||
pos := C.get_mouse_pos()
|
pos := C.get_mouse_pos()
|
||||||
// fmt.Println("pos:###", pos, pos.x, pos.y)
|
// fmt.Println("pos:###", pos, pos.x, pos.y)
|
||||||
@ -727,11 +727,17 @@ func TypeStr(str string, args ...float64) {
|
|||||||
inputUTF(strUc[i])
|
inputUTF(strUc[i])
|
||||||
MicroSleep(tm)
|
MicroSleep(tm)
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
for i := 0; i < len([]rune(str)); i++ {
|
for i := 0; i < len([]rune(str)); i++ {
|
||||||
ustr := uint32(CharCodeAt(str, i))
|
ustr := uint32(CharCodeAt(str, i))
|
||||||
UnicodeType(ustr)
|
UnicodeType(ustr)
|
||||||
}
|
|
||||||
|
// if len(args) > 0 {
|
||||||
|
// MicroSleep(tm)
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user