You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt"
"github.com/go-vgo/robotgo"
)
func main() {
fmt.Println("Pressing a for 3 seconds")
robotgo.KeyDown("a")
robotgo.Sleep(3)
robotgo.KeyUp("a")
}
Log gist:
Description
Hi, Is it possible to have it so I can press a key down for a certain amount of seconds? In the example code, I want to press a for 3 seconds before releasing the key but it doesn't seem to work.
Is there any way to go about doing this in RobotGo?
Thanks.
The text was updated successfully, but these errors were encountered:
Description
Hi, Is it possible to have it so I can press a key down for a certain amount of seconds? In the example code, I want to press a for 3 seconds before releasing the key but it doesn't seem to work.
Is there any way to go about doing this in RobotGo?
Thanks.
The text was updated successfully, but these errors were encountered: