update typestr, godoc and version

This commit is contained in:
vcaesar 2018-06-18 21:13:34 +08:00
parent fdddd73837
commit 3dce490b76

View File

@ -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)
// }
} }
} }