How can I capture text below mouse pointer

Hi all
I need to capture a word when mouse pointer click on it (like babylon application does), this text is not only placed into any swing text component, It could be from a pdf doc, html page or anywhere across the desktop (windows or linux).
I don't know if this is reachable via Swing. I don't know when to start.
If someone has any clue, please reply.
Thanks in advanced.
David.
Edited by: davidwizo on Jun 4, 2009 2:32 PM

davidwizo wrote:
Hi all
I need to capture a word when mouse pointer click on it (like babylon application does), this text is not only placed into any swing text component, It could be from a pdf doc, html page or anywhere across the desktop (windows or linux).You can capture the screen image and do ocr... very much a pain.
I don't know if this is reachable via Swing. I don't know when to start.NO, it is not, nor is it doable in Java or in a crossplatform compatible environement, you're either going to look at OCR or some JNI.
If someone has any clue, please reply.
Thanks in advanced.
David.Narrow your scope to make it doable, the project is probably too broad for you to fit in comfortably.

Similar Messages

  • How can i extract text from Power point files,wod files,pdf files

    hi friends,
    i need to extract text from the power point files,word files,pdf files for my application.Is it possible to extract the text from the those files .If yes plz give solution to this problem.i would be thankful if u givve solution to this problem.

    My reply would be the same.
    http://forum.java.sun.com/thread.jspa?threadID=676559&tstart=0

  • How can I capture in forms the text from a database error

    In forms6i, how can I capture the text of an error during the execution of a dabatase procedure or package.
    Thanks for your help.

    You can use SQLERRM function :
    SQL> create or replace procedure procerr
      2  is
      3     n number;
      4  begin
      5     n := 1/0;
      6* end;
    SQL> /
    Procedure created.
    SQL> set serveroutput on
    SQL> declare
      2     err1    varchar2(200);
      3  begin
      4     procerr;
      5  exception
      6     when others then
      7             err1 := SQLERRM;
      8             dbms_output.put_line(err1);
      9* end;
    SQL> /
    ORA-01476: divisor is equal to zero
    PL/SQL procedure successfully completed.
    SQL>

  • How can I wrap text in a pie in pages?

    How can I wrap text in a pie in pages?

    If you need to insert text into a shape like a pie wedge, the easiest way might be to simply use the shape - freeform tool (at the bottom of the shape menu) and create a shape and type your text in it then place the shape over your pie wedge. The text within the shape should wrap - additional controls for text can be used with the Text Inspector.
    You can edit the actual shape with Format Object > Make Shape Editable option but unfortunately, you have an option to make straight or smooth curves, but not both, so you'll need to shape the object using smooth curves and use the the bezier controls that appear as you select a control point.

  • How can i write the below code using "For all entries"

    Hi
    How can we write the below code using "for all entries" and need to avoid joins...
    Please help
    SELECT aaufnr aobjnr aauart atxjcd a~pspel
    agstrp awerks carbpl cwerks
    INTO TABLE t_caufv
    FROM caufv AS a
    INNER JOIN afih AS b
    ON aaufnr = baufnr
    INNER JOIN crhd AS c
    ON bgewrk = cobjid
    AND c~objty = 'D'
    WHERE ( a~pspel = space
    OR a~txjcd = space
    OR NOT a~objnr IN
    ( select OBJNR from COBRB AS e
    WHERE objnr = a~objnr ) )
    AND a~werks IN s_plant
    AND a~auart IN s_wtype
    AND NOT a~objnr IN
    ( select OBJNR from JEST AS d
    WHERE objnr = a~objnr
    AND ( dstat = 'A0081'OR dstat = 'A0018' )
    AND d~inact 'X' ).
    Reward points for all helpfull answers
    Thanks
    Ammi.

    Hi,
    SELECT objnr objid aufnr
            from afih
            into table t_afih.
    SELECT objnr
            from JEST
            into table t_JEST
            where stat = 'A0045'
               OR stat = 'A0046'
               AND inact 'X'.
    SELECT objnr
            from COBRB
            into table t_cobrb.
    SELECT arbpl werks objid objty
          from crhd
          INTO table it_crhd
          FOR ALL ENTRIES IN it_afih
          WHERE objty eq 'D'
          AND gewrk = it_afih-objid.
    SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
            FROM caufv
            INTO table t_caufv
            FOR ALL ENTRIES IN it_afih
            WHERE aufnr = it_afih-aufnr
              And pspel = ' '
              AND txjcd = ' '
             ANd objnr ne it_crhd-objnr
              AND auart in s_wtype
              AND werks in s_plant.
             AND objnr ne it_jest-objnr.
    dont use NE in the select statements, it may effect performance also. Instead use if statements inside
    loops.
    loop at t_caufv.
    read table it_chrd............
      if t_caufv-objnr ne it_chrd-objnr.
      read table it_jest..........
       if   if t_caufv-objnr ne it_jest-objnr.
        (proceed further).
       endif.
      endif.
    endloop.
    hope this helps.
    Reward if useful.
    Regards,
    Anu

  • How can I align text in Acrobat 8.1 Professional?

    Okay this is quite silly, but seriously how can I align text in adobe acrobat? I could not find a way other than creating a new document file which allows me to use alignment options automatically (example below), however does not allow me that when I reopen the same file (alignment and text options just dissapear on the bars, funny). Help anyone please? =/
    http://img152.imageshack.us/my.php?image=examplemo2.jpg

    Not that silly; but you ideally shouldn't be trying. Although there are some rudimentary (and sometimes unpredictable) editing tools in Acrobat, (I presume you are trying with the TouchUp Object tool as well as the TouchUp Text ?) much better to get it right in the source application and think of the pdf as what it basically is...a print.
    For whatever reason, v5 could edit text positioning rather more easily than the later versions.

  • How can I add text or title to a live video?

    Please, how can i add text or title to a live video (event or church service) am capturing and transmit or export my it to a screen for viewers to see?
    Message was edited by: Kevin Monahan Title was changed.

    Do you wish to add Titles to a live feed, in real-time?
    If so, then you will probably looking at a hardware mixing console/switcher, with character generation capabilities.
    Good luck,
    Hunt

  • How can i remove text in between the tags

    Hi 
    I want to remove the text inside the xml tags and am failing to do so. i have tried this codding with no results.
    <value>yes</value> = <value></value>
    <value>yes</value> = <value></value>
    <value>yes</value> = <value></value>
    my code:
                    string text = File.ReadAllText(outputFilePath);
                    text = DeleteBetween1(text,"<value>", "</value>");
     public string DeleteBetween(string STR, string FirstString, string LastString)
                string regularExpressionPattern1 = @"(?:\" + FirstString + @")(<^<>+)\<\/" + LastString;
                Regex regex = new Regex(regularExpressionPattern1, RegexOptions.Singleline);
                MatchCollection collection = regex.Matches(STR.ToString());
                var val = string.Empty;
                foreach (Match m in collection)
                    val = m.Groups[1].Value;
                    STR = STR.Replace(val, "");
                return STR;

    hi,
    you can try below.
    https://social.msdn.microsoft.com/Forums/en-US/b9b4d8d6-38ba-4483-abfd-4939aca0593d/how-can-i-extract-text-string-between-two-tags-?forum=csharpgeneral
    hope that helps.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How can I change text to a document?

    how can I change text to a document?

    Hi littleei54,
    I'm not sure that I follow. Would you like to edit text in a PDF (that requires Acrobat)? Or, do you want to convert a text file to PDF? Please provide a little more information and we will get you pointed in the right direction.
    Best,
    Sara

  • How can i print text messages from my htc amaze to my deskjet 3050A

    how can i print text messages from my htc amaze to my hp deskjet 3050A

    Hi,
    I believe the phone uses Android OS, v2.3.4 (Gingerbread) therefore you can use one of these applications:
       http://www.printeron.com/apps/androidprinting.html
       https://market.android.com/details?id=com.pauloslf​.cloudprint&hl=en
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can I insert text in a photo?

    How can I insert text onto a photo?  Before Lion used Command T. Have not installed Page or Numbers. Have Microsoft for Mac.

    Open the photo with Preview and select ⌃⌘T.
    (Also, take a look at: Skitch)

  • How can I copy text from one card to another while creating cards using Iphoto?

    I created two cards with different pictures using Iphoto on Macnotebook. 
    I want to use the same text message.
    How can I copy text from one card to another?

    select the text and copy (edit menu ==> copy) tehn gpo to the next card and paste
    LN

  • How can I output text in a browser window in JAVA?

    How can I output text in a browser window in JAVA?

    "response.getWriter().print()" is the most common method when using servlets

  • How can I save text messages to my Mac and will that reduce "Other" in storage?

    I have hundreds (or more) of text messages on my iPhone 5 that for personal reasons, I want to save. There are far too many to do screenshots. I want to save them to my MacBook Pro Retina in a readable and printable format. The reason is that I read that text messages can cause the "Other" storage to be higher. My "Other" is over 6 GB on a 16 GB iphone. Therefore I want to save texts, print them, and delete from phone.
    First question: Is it true that text messages contribute to the size of "Other"?
    Second question: How can I save texts to Mac in readable format so they could be printed? 
    Third question: How in the world do I delete all these texts from my iPhone efficiently? Is there a way to "mass delete"?
    When you are answering this, perhaps it is noteworthy that:
    (a) I've had an iPhone since a 3G in 2009, and the texts I want to save have been accumulating since then.
    (b) My "Other" has gradually gotten larger over the years. 
    (c)  I sync with itunes regularly.
    (d) I've never had any problems with an iphone or with my data.
    (e) I've restored from backup only three times, when I upgraded to the iphone 4, 4S, and 5.
    I want to get this "Other" cleared up before I upgrade to the iphone 5S. 
    Thank you.

    You can select to export a folder to save as a .mbox file. This file would need to be imported if you wanted to view the messages.
    Select mailbox (folder)
    Under Mailbox in the Menu bar select Export Mailbox...
    You might also want to check out the demo for EagleFiler by the author for SpamSieve. You could view and search the messages archived in EagleFiler.
    http://c-command.com/eaglefiler/
    Regarding Mail being slow....
    Is it only Mail that is slow?  How much free space on your drive? Use Disk Utility to find available space.

  • How can I use microsoft word, power point and those apps in my new iMac ? i bought this iMac yesterday so am new on tho and i would like to know

    how can I use microsoft word, power point and those apps in my new iMac ? i bought this iMac yesterday so am new on tho and i would like to know

    If you absolutely must have the Microsoft applications, you can purchase and download them from http://microsoft.com/mac.
    Free software suites LibreOffice and OpenOffice offer similar functionality (word processing and spreadsheets).
    Or you could do worse than look at Apple's Pages, Numbers and Keynote, which should already be installed in your Mac and can export to Microsoft formats if need be.
    Matt

Maybe you are looking for

  • Develope new Report for Summarized JIT (Just In Time) calls

    Hi to all, Can anybody kindly tell me how to solve the following: This report is for Delco Singapore needs all Summarized JIT calls created between selected dates to be closed. If JIT call quantity is 0 and GR quantity is also 0, then GR flag for JIT

  • Error while runing standard SRS program

    Hi all, I had written the interface for po_vendor_sites_all.The data is loaded perfectly into interface table AP_SUPPLIER_SITES_INT. Now while running standard interface program on SRS(Supplier Sites Open Interface Import) .it is giving following err

  • BADI UserExit Required for Before transport Request is created

    Hi Friends, I have a problem in implementing  : We have two development client one for support and other for development. Same object can be worked together in both client simultaneously that is causing lot of synchronization problem in both client.

  • I installed OSXYosemite 10.10.3 and have been unable to access my photos in iPhoto

    I installed OS X Yosemite 10.10.3 and have been unable to access my photos on iPhoto - in fact, I have  been unable to even get iPhoto to open.  I read that I should download iPhoto 9.6.1 but have been unable to even find it.  There was a suggestion

  • Selection-screen in alv oops

    Hi All, Am creating am alv report in oops .,., but am facing an unusual problem ,,,am unable to display selection-screen .., its really unusual which i never came across Kindly provide me suggestions to fix it up.. thanks jack