robotgo icon indicating copy to clipboard operation
robotgo copied to clipboard

What does the robotGo.typestr ("Hello World") method do?

Open smp12345 opened this issue 3 years ago • 3 comments

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")
}

smp12345 avatar Feb 04 '21 11:02 smp12345

1

smp12345 avatar Feb 05 '21 05:02 smp12345

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: 16165694375739

wilon avatar Mar 24 '21 07:03 wilon

OK, thank you for your reply. Is this framework going to support UIA in the future?

smp12345 avatar Apr 04 '21 04:04 smp12345