robotgo
robotgo copied to clipboard
What does the robotGo.typestr ("Hello World") method do?
Is typestr not a keyboard input?Why is there no output from my console or active window?
import (
"github.com/go-vgo/robotgo"
"time"
)
func main() {
time.Sleep(10*time.Second)
robotgo.TypeStr("Hello World")
}
This func robotGo.typestr
call win32 api SendInput on win, not keyboard input.
So in some software, this method is forbidden. Such as you opened 360 this func is invalid. QQ client password input is invalid too.
If you want to break through the forbidden, you must use keyboard USB hardware like this:
OK, thank you for your reply. Is this framework going to support UIA in the future?