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. send message to window [modified]

send message to window [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
10 Posts 3 Posters 1 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
    trioum
    wrote on last edited by
    #1

    I have handlw to that window

    Trioum

    modified on Friday, June 12, 2009 2:03 AM

    N 1 Reply Last reply
    0
    • T trioum

      I have handlw to that window

      Trioum

      modified on Friday, June 12, 2009 2:03 AM

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      trioum wrote:

      how can we send a ctrl+V message to window .I have handlw to that window

      You can use WM_PASTE, if it's an edit control, directly and your intention is to paste some text from clipboard. Also you can try SendInput[^].

      Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

      T 1 Reply Last reply
      0
      • N Nibu babu thomas

        trioum wrote:

        how can we send a ctrl+V message to window .I have handlw to that window

        You can use WM_PASTE, if it's an edit control, directly and your intention is to paste some text from clipboard. Also you can try SendInput[^].

        Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

        T Offline
        T Offline
        trioum
        wrote on last edited by
        #3

        [Message Deleted]

        R 1 Reply Last reply
        0
        • T trioum

          [Message Deleted]

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          You should not be doing such a thing though, you've been asking it for something like a month here. So... Send key-stroke messages in this order: Control (Key down) S (key down) S (key up) Control (Key up)

          It is a crappy thing, but it's life -^ Carlo Pallini

          T 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            You should not be doing such a thing though, you've been asking it for something like a month here. So... Send key-stroke messages in this order: Control (Key down) S (key down) S (key up) Control (Key up)

            It is a crappy thing, but it's life -^ Carlo Pallini

            T Offline
            T Offline
            trioum
            wrote on last edited by
            #5

            [Message Deleted]

            R 1 Reply Last reply
            0
            • T trioum

              [Message Deleted]

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #6

              trioum wrote:

              send me chunck of code

              WRITE IT YOURSELF! Use PostMessage[^] with WM_KEYDOWN[^], WM_KEYUP[^] to send normal key press event. Similarly use WM_SYSKEYDOWN[^] and WM_SYSKEYUP[^] for sending a CTRL key press event.

              It is a crappy thing, but it's life -^ Carlo Pallini

              T 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                trioum wrote:

                send me chunck of code

                WRITE IT YOURSELF! Use PostMessage[^] with WM_KEYDOWN[^], WM_KEYUP[^] to send normal key press event. Similarly use WM_SYSKEYDOWN[^] and WM_SYSKEYUP[^] for sending a CTRL key press event.

                It is a crappy thing, but it's life -^ Carlo Pallini

                T Offline
                T Offline
                trioum
                wrote on last edited by
                #7

                ok

                Trioum

                modified on Friday, June 12, 2009 2:01 AM

                R 1 Reply Last reply
                0
                • T trioum

                  ok

                  Trioum

                  modified on Friday, June 12, 2009 2:01 AM

                  R Offline
                  R Offline
                  Rajesh R Subramanian
                  wrote on last edited by
                  #8

                  How would I know what were you doing? Is it difficult for you to show me your code?

                  It is a crappy thing, but it's life -^ Carlo Pallini

                  T 1 Reply Last reply
                  0
                  • R Rajesh R Subramanian

                    How would I know what were you doing? Is it difficult for you to show me your code?

                    It is a crappy thing, but it's life -^ Carlo Pallini

                    T Offline
                    T Offline
                    trioum
                    wrote on last edited by
                    #9

                    ok I use

                    Trioum

                    modified on Friday, June 12, 2009 2:01 AM

                    T 1 Reply Last reply
                    0
                    • T trioum

                      ok I use

                      Trioum

                      modified on Friday, June 12, 2009 2:01 AM

                      T Offline
                      T Offline
                      trioum
                      wrote on last edited by
                      #10

                      yet i solve my problem

                      Trioum

                      modified on Friday, June 12, 2009 2:02 AM

                      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