Results 1 to 6 of 6
Thread: external mouse actions
- 02-09-2011, 12:25 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
external mouse actions
I'm interested in determining where a mouse is clicked and how much time has passed since the last click. However, I don't want to be restrained to a component's size and location. I'd like this to a sort of "background" operation, so I can continue clicking as normal in my other applications, while being able to see what I'm doing.
Any suggestions would be a great help.
Thanks.
-
Suggestion 1: don't use Java for this. To do this, you'll likely need to hook the OS's mouse routines, and Java, being relatively OS agnostic, is not a good language for close interactions with the OS.
- 02-09-2011, 09:55 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
Okay... I just thought it'd be possible, since MouseInfo already tracks the mouse's location. I figured it'd be a short step away from clicking.
Also, you say "suggestion 1:" as if there is a second suggestion?
-
- 02-10-2011, 04:12 AM #5
Member
- Join Date
- Mar 2009
- Posts
- 70
- Rep Power
- 0
What I have done when i needed hardware in Java is write a simple C++ program, relaying whatever information through a socket to Java. Sockets are low level, so it should work on any system. It is hackish, but it works.
- 02-10-2011, 05:07 AM #6
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
Similar Threads
-
Actions
By What2do in forum New To JavaReplies: 4Last Post: 01-31-2011, 04:45 PM -
How to Use Actions
By AJArmstron@aol.com in forum New To JavaReplies: 4Last Post: 04-18-2010, 09:03 PM -
JMenuItems and actions
By Kligham in forum New To JavaReplies: 5Last Post: 01-05-2010, 05:00 PM -
Mouse Listener for mouse floating over object?
By Krooger in forum AWT / SwingReplies: 1Last Post: 11-18-2009, 04:34 AM -
Actions
By alley in forum AWT / SwingReplies: 2Last Post: 01-16-2008, 02:52 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks