how to get mouse double click in desktop
ddatsh opened this issue · 3 comments
ddatsh commented
as title
vcaesar commented
Listen twice.
ddatsh commented
Listen twice.
bad, title
I want to know ,click in desktop area, not in applications
AutomateAaron commented
The hook.Event
type has an attribute Clicks
which may be what you're looking for 😉
For example:
robotgo.EventHook(hook.MouseDown, []string{}, func(e hook.Event) {
if e.Button == hook.MouseMap["right"] {
fmt.Printf("right @ clicks: %v\n", e.Clicks)
}
})
s := robotgo.EventStart()
<-robotgo.EventProcess(s)