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. Change remotely a text

Change remotely a text

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
6 Posts 5 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.
  • D Offline
    D Offline
    Dennis L
    wrote on last edited by
    #1

    Hi All. Can anyone tell me how to change a text in an edit box of an other process programmatically (maybe using SetWindowsHook or something else) I want it to work on Win9x and WinXP thanks

    L H L 3 Replies Last reply
    0
    • D Dennis L

      Hi All. Can anyone tell me how to change a text in an edit box of an other process programmatically (maybe using SetWindowsHook or something else) I want it to work on Win9x and WinXP thanks

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

      SendMessage(....)

      led mike

      1 Reply Last reply
      0
      • D Dennis L

        Hi All. Can anyone tell me how to change a text in an edit box of an other process programmatically (maybe using SetWindowsHook or something else) I want it to work on Win9x and WinXP thanks

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See if its helpfuls

        char *MY="Hello";
        HWND hWnd = ::FindWindow("Notepad", NULL);
        CWnd *hWndEdit=FindWindowEx(hWnd,NULL,"Edit",NULL);
        ::SendMessage(hWndEdit->m_hWnd,WM_SETTEXT,0,(long)MY);


        WhiteSky


        1 Reply Last reply
        0
        • D Dennis L

          Hi All. Can anyone tell me how to change a text in an edit box of an other process programmatically (maybe using SetWindowsHook or something else) I want it to work on Win9x and WinXP thanks

          L Offline
          L Offline
          lucy 0
          wrote on last edited by
          #4

          // CEdit m_edit; m_edit.SetWindowText ("your text");

          H T 2 Replies Last reply
          0
          • L lucy 0

            // CEdit m_edit; m_edit.SetWindowText ("your text");

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            He said on the other program not his program


            WhiteSky


            1 Reply Last reply
            0
            • L lucy 0

              // CEdit m_edit; m_edit.SetWindowText ("your text");

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              lucy wrote:

              m_edit.SetWindowText ("your text");

              but forĀ  that you have get handle of that Edit Box

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta Global Interface Table: An Easy Way to Marshal an Interface Pointer[new] VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

              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