Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
eshedz@gmail.com - 18 Nov 2005 18:21 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.