1

I'm fluent in java, and have messed with vb.net, but I prefer java. I wish to make a program that ++'s a variable everytime I click my mouse in a certain coordinate on my screen. Not sure how to record when a mouse click has happened outside of the program's forms.

1 Answers1

2

This can't be done in pure Java but people have written JNI libraries that can capture global mouse and keyboard events. Take a look at

https://github.com/kwhat/jnativehook

pvg
  • 2,673
  • 4
  • 17
  • 31