• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

How to listen to the words from other applications

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to listen to the words which were selected in third party programs.
I only want to know which words were selected; then I will find the description of those words from a dictionary. I'm trying to make an easy to use dictionary.
This is what the dictionary program "babylon" does.
Is it possible to make such a java listener?
Thanks.
Ahmet Aksoy
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think You will need access to windows api in C to do this.
Maybe easier will be to use Clipboard Listener. User of your application will be useing Ctrl+C to send selected phrase to your application

Best Regards,
KArol Muszynski
 
Ahmet Aksoy
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by KArol Muszynski:
I think You will need access to windows api in C to do this.
Maybe easier will be to use Clipboard Listener. User of your application will be useing Ctrl+C to send selected phrase to your application

Best Regards,
KArol Muszynski



Hi Karol,
I had used your suggestion in a Delphi project previously. I know it works very well.
But now, I want to obtain an easier method in my case.
I have an open source project named as "belletmen" at http://belletmen.dev.java.net . In this project, user loads a text document. Program selects words in it automatically by mouse clicks or by mouse movements. Word selection is made automatically. I hope that my application will be used by children, or second language learners. So, I want them to be comfortable. They must be focused completeley on the reading. If I force them to select the words and send it to the clipboard with a pop-up menu, or Ctrl-C, they will lose their focus.
So, I want to obtain a better solution.
Maybe a kind of OCR from the screen will be nice.
Thank you for your suggestion.
Ahmet Aksoy
 
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic