Uptil now all I did was coding stuff and make stuff react to mouse
actions within a window (jframe for example)..
Is it possible to code an app that, let's say, get a word that is under
the mouse pointer but outside the window -- for example Notepad? (e.g.
you hover with your mouse a word inside notepad and the system gets
that word).
Thanks.
Oliver Wong - 18 Nov 2005 18:37 GMT
> Uptil now all I did was coding stuff and make stuff react to mouse
> actions within a window (jframe for example)..
[quoted text clipped - 3 lines]
> you hover with your mouse a word inside notepad and the system gets
> that word).
See java.awt.Robot
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Robot.html
- Oliver
eshedz@gmail.com - 18 Nov 2005 19:13 GMT
wow
finally someone answered me -- I put this also in the official java
forum and nobody replied :)
Thanks, oliver.. i'll check it out later, got things to do :)
Roedy Green - 19 Nov 2005 13:00 GMT
>Is it possible to code an app that, let's say, get a word that is under
>the mouse pointer but outside the window -- for example Notepad? (e.g.
>you hover with your mouse a word inside notepad and the system gets
>that word).
The only tool close to that is the Robot class. It will get you
pixels of the text rendering, not text
See http://mindprod.com/jgloss/robot.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.