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. How to Hook Notepad?

How to Hook Notepad?

Scheduled Pinned Locked Moved C / C++ / MFC
databasejsonhelptutorialquestion
7 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
    mrviceroy
    wrote on last edited by
    #1

    What I am trying to make is a Sidekick translator. As soon as a user launches it, it minimizes to taskbar. When mouse is hovering on top of a word, it should pop up a tip-window with its corresponding explanation found in the database. I've successfully hooked up Notepad.exe and had the following API functions replaced: TextOutA, ExtTextOut, DrawTextA, DrawTextEx. But none of them seems to be what Notepad uses to display text. Could someone be of help? Thanks a lot.

    B S 2 Replies Last reply
    0
    • M mrviceroy

      What I am trying to make is a Sidekick translator. As soon as a user launches it, it minimizes to taskbar. When mouse is hovering on top of a word, it should pop up a tip-window with its corresponding explanation found in the database. I've successfully hooked up Notepad.exe and had the following API functions replaced: TextOutA, ExtTextOut, DrawTextA, DrawTextEx. But none of them seems to be what Notepad uses to display text. Could someone be of help? Thanks a lot.

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      Notepad is actually a standard, multi-line editbox... mrviceroy wrote: I've successfully hooked up Notepad.exe and had the following API functions replaced: TextOutA, ExtTextOut, DrawTextA, DrawTextEx How?! Bikram Singh

      A 1 Reply Last reply
      0
      • M mrviceroy

        What I am trying to make is a Sidekick translator. As soon as a user launches it, it minimizes to taskbar. When mouse is hovering on top of a word, it should pop up a tip-window with its corresponding explanation found in the database. I've successfully hooked up Notepad.exe and had the following API functions replaced: TextOutA, ExtTextOut, DrawTextA, DrawTextEx. But none of them seems to be what Notepad uses to display text. Could someone be of help? Thanks a lot.

        S Offline
        S Offline
        Steven Hicks n 1
        wrote on last edited by
        #3

        Visual C++ Developer's journal had an article on how to do this, it was published by Fawcette pub, you should still be able to find it. -Steven Hicks

        CPA

        CodeProjectAddict

        Actual Linux Penguins were harmed in the creation of this message.

        More tutorials: Ltpb.8m.com: Tutorials |404Browser.com (Download Link)

        M 1 Reply Last reply
        0
        • B bikram singh

          Notepad is actually a standard, multi-line editbox... mrviceroy wrote: I've successfully hooked up Notepad.exe and had the following API functions replaced: TextOutA, ExtTextOut, DrawTextA, DrawTextEx How?! Bikram Singh

          A Offline
          A Offline
          alex barylski
          wrote on last edited by
          #4

          bikram singh wrote: How?! Search for API hooks here at CP (or just hooks i'm not sure) There is an article that explains all sorts of hooking techniques. How do I print my voice mail?

          1 Reply Last reply
          0
          • S Steven Hicks n 1

            Visual C++ Developer's journal had an article on how to do this, it was published by Fawcette pub, you should still be able to find it. -Steven Hicks

            CPA

            CodeProjectAddict

            Actual Linux Penguins were harmed in the creation of this message.

            More tutorials: Ltpb.8m.com: Tutorials |404Browser.com (Download Link)

            M Offline
            M Offline
            mrviceroy
            wrote on last edited by
            #5

            Could you give me the time or url, please? Thank you.

            S 1 Reply Last reply
            0
            • M mrviceroy

              Could you give me the time or url, please? Thank you.

              S Offline
              S Offline
              Steven Hicks n 1
              wrote on last edited by
              #6

              fawcette.com/archives/premier/mgznarch/vcdj/2001/02feb01/de0201/de0201.asp[^] -Steven Hicks

              CPA

              CodeProjectAddict

              Actual Linux Penguins were harmed in the creation of this message.

              More tutorials: Ltpb.8m.com: Tutorials |404Browser.com (Download Link)

              M 1 Reply Last reply
              0
              • S Steven Hicks n 1

                fawcette.com/archives/premier/mgznarch/vcdj/2001/02feb01/de0201/de0201.asp[^] -Steven Hicks

                CPA

                CodeProjectAddict

                Actual Linux Penguins were harmed in the creation of this message.

                More tutorials: Ltpb.8m.com: Tutorials |404Browser.com (Download Link)

                M Offline
                M Offline
                mrviceroy
                wrote on last edited by
                #7

                Thanks.

                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