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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Can someone crack this problem? I can't...

Can someone crack this problem? I can't...

Scheduled Pinned Locked Moved C / C++ / MFC
questionhtmlhelp
3 Posts 3 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.
  • T Offline
    T Offline
    Tommy Svensson
    wrote on last edited by
    #1

    Hi everybody, I have developed an IE extension that will popup an HTML div layer with lots of information once I move the mouse cursor over a word/string in a web page document. Now, this is restricted to only work in IE. I want the same functionality but system wide. I know there is software that can do this; that is, point the mouse on ANY string (besides the ones that are images) on the screen and voila, a nice little box appear next to the word with translations and other nice information about the word. My question: How can I retrieve the string beneath the mouse pointer, no matter where and in which application the mouse cursor is placed...? I've heard of some OCR programs that can do this but I don't want that now; maybe as a next step to implement popups on images as well. Please, if you do know anything about this, don't hesitate to mail!!! Thx!!! /Tommy

    B A 2 Replies Last reply
    0
    • T Tommy Svensson

      Hi everybody, I have developed an IE extension that will popup an HTML div layer with lots of information once I move the mouse cursor over a word/string in a web page document. Now, this is restricted to only work in IE. I want the same functionality but system wide. I know there is software that can do this; that is, point the mouse on ANY string (besides the ones that are images) on the screen and voila, a nice little box appear next to the word with translations and other nice information about the word. My question: How can I retrieve the string beneath the mouse pointer, no matter where and in which application the mouse cursor is placed...? I've heard of some OCR programs that can do this but I don't want that now; maybe as a next step to implement popups on images as well. Please, if you do know anything about this, don't hesitate to mail!!! Thx!!! /Tommy

      B Offline
      B Offline
      benjymous
      wrote on last edited by
      #2

      I'm afraid that OCR is going to be your only answer if you want *any* text, since the text gets rendered by the App to screen, and therefore may not even exist as a literal string in memory when you try and grab it. It might be possible to somehow add a system hook to grab text that can be copied to the clipboard, but that's only going to be a tiny subset of the text on screen -- Help me! I'm turning into a grapefruit!

      1 Reply Last reply
      0
      • T Tommy Svensson

        Hi everybody, I have developed an IE extension that will popup an HTML div layer with lots of information once I move the mouse cursor over a word/string in a web page document. Now, this is restricted to only work in IE. I want the same functionality but system wide. I know there is software that can do this; that is, point the mouse on ANY string (besides the ones that are images) on the screen and voila, a nice little box appear next to the word with translations and other nice information about the word. My question: How can I retrieve the string beneath the mouse pointer, no matter where and in which application the mouse cursor is placed...? I've heard of some OCR programs that can do this but I don't want that now; maybe as a next step to implement popups on images as well. Please, if you do know anything about this, don't hesitate to mail!!! Thx!!! /Tommy

        A Offline
        A Offline
        Andreas Saurwein
        wrote on last edited by
        #3

        Look at the Active Accessibility API (IAccessible etc) for a good start. Its not easy to use, but provides a good lot more information on screen items.

        int x=1, y=5;
        x^=y^=x^=y; // whats the content of x and y now?
        ClickHereForHelp();

        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