Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the AddEvent() method to execute twice when the button is pressed. #152

Open
1 of 3 tasks
vcaesar opened this issue Aug 10, 2018 · 1 comment
Open
1 of 3 tasks

Comments

@vcaesar
Copy link
Member

vcaesar commented Aug 10, 2018

  • Robotgo version (or commit ref): 0.50.0.648
  • Go version: 1.10.x
  • Gcc version: x.x
  • Operating system and bit: x.x
  • Can you reproduce the bug at Examples:
    • Yes (provide example code)
    • No
    • Not relevant
  • Provide example code:
kav := robotgo.AddEvent("mleft")
if kav == 0 {
   fmt.Println("left mouse button")
}

Description

Use the AddEvent() method to execute twice when the button is pressed.

@vcaesar
Copy link
Member Author

vcaesar commented Aug 11, 2018

It is recommended to make a difference between pressing and releasing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant