Commit 45ba7879 authored by qwelp's avatar qwelp

fix example

parent 6568663d
......@@ -18,6 +18,11 @@ func main() {
text = strings.Trim(text, "\n")
fmt.Println("Select text input field to write. Wait 5 sec to start writting...")
time.Sleep(5 * time.Second)
err := string2keyboard.KeyboardWrite(text)
if err != nil {
fmt.Printf("Could not write as keyboard input. Error: %s", err.Error())
} else {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment