Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How I can get the text from x,y coordinate?

How I can get the text from x,y coordinate?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marco2250
    wrote on last edited by
    #1

    Hi all. I'd search in the board how an can get text that is at the coordinate x,y (I have a flexgrid on external program and want to get the text of some row/column by its x,y coordinates. I didn't found nothing. Can someone help me? Please, help me. Thx in advance. Best Regards, Marco Alves.

    C L 2 Replies Last reply
    0
    • M Marco2250

      Hi all. I'd search in the board how an can get text that is at the coordinate x,y (I have a flexgrid on external program and want to get the text of some row/column by its x,y coordinates. I didn't found nothing. Can someone help me? Please, help me. Thx in advance. Best Regards, Marco Alves.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      capture the window as a bitmap, then do some OCR to try to figure out what the text is

      image processing | blogging

      L S 2 Replies Last reply
      0
      • C Chris Losinger

        capture the window as a bitmap, then do some OCR to try to figure out what the text is

        image processing | blogging

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        <sarcasm>Yeah, that's what he was looking for</sarcasm> :laugh:

        led mike

        C 1 Reply Last reply
        0
        • L led mike

          <sarcasm>Yeah, that's what he was looking for</sarcasm> :laugh:

          led mike

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          that's wasn't sarcasm. text isn't stored on-screen anywhere as text. by the time the output of TextOut gets to the screen, it's just brightly-glowing dots. the only way to know what text is at x,y is if you keep track of that info as you draw it. but if you're not the one drawing it...

          image processing | blogging

          L 1 Reply Last reply
          0
          • C Chris Losinger

            that's wasn't sarcasm. text isn't stored on-screen anywhere as text. by the time the output of TextOut gets to the screen, it's just brightly-glowing dots. the only way to know what text is at x,y is if you keep track of that info as you draw it. but if you're not the one drawing it...

            image processing | blogging

            L Offline
            L Offline
            led mike
            wrote on last edited by
            #5

            Chris Losinger wrote:

            that's wasn't sarcasm.

            My reply wasn't sarcasm? :confused:

            led mike

            C 1 Reply Last reply
            0
            • M Marco2250

              Hi all. I'd search in the board how an can get text that is at the coordinate x,y (I have a flexgrid on external program and want to get the text of some row/column by its x,y coordinates. I didn't found nothing. Can someone help me? Please, help me. Thx in advance. Best Regards, Marco Alves.

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              Stop cross-posting all your questions please.

              led mike

              1 Reply Last reply
              0
              • L led mike

                Chris Losinger wrote:

                that's wasn't sarcasm.

                My reply wasn't sarcasm? :confused:

                led mike

                C Offline
                C Offline
                Chris Losinger
                wrote on last edited by
                #7

                i guess i mistook the direction of your sarcasm. :laugh:

                image processing | blogging

                1 Reply Last reply
                0
                • C Chris Losinger

                  capture the window as a bitmap, then do some OCR to try to figure out what the text is

                  image processing | blogging

                  S Offline
                  S Offline
                  Stephen Hewitt
                  wrote on last edited by
                  #8

                  He may be able to get the text as text (without OCR) for a specific control (in his case a flexigrid). I agree that a general solution that works for any control would need to use OCR however. Active Accessibility is also an interesting possibility for controls that support it.

                  Steve

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups