Is it possible to code something that reads stuff OUTSIDE the GUI?

E

eshedz

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.
 
E

eshedz

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 :)
 
R

Roedy Green

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top