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. Sending a message though a Win32 program

Sending a message though a Win32 program

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
8 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.
  • S Offline
    S Offline
    Steven Hicks n 1
    wrote on last edited by
    #1

    How can i send a WM_LBUTTONDOWN message from a Win32 program, without the user pressing the Left button Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

    B N F 3 Replies Last reply
    0
    • S Steven Hicks n 1

      How can i send a WM_LBUTTONDOWN message from a Win32 program, without the user pressing the Left button Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

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

      SendMessage(hwnd, WM_LBUTTONDOWN, (WPARAM)(fill this out, use your help),(LPARAM)(same here..)); Piece of cake.

      1 Reply Last reply
      0
      • S Steven Hicks n 1

        How can i send a WM_LBUTTONDOWN message from a Win32 program, without the user pressing the Left button Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        You want to send a message? How about the apply named SendMessage function? SendMessage(hWnd, WM_LBUTTONDOWN, 0, 0 ), Doh!

        S 1 Reply Last reply
        0
        • N Not Active

          You want to send a message? How about the apply named SendMessage function? SendMessage(hWnd, WM_LBUTTONDOWN, 0, 0 ), Doh!

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

          I tried to do that but it didn't work. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

          L N 3 Replies Last reply
          0
          • S Steven Hicks n 1

            I tried to do that but it didn't work. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            I think it's the only way so try again:)

            1 Reply Last reply
            0
            • S Steven Hicks n 1

              I tried to do that but it didn't work. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              Since you didn't get this answered, what seems to be the problem?? Is the hWnd parameter the button you are trying to invoke? Perhaps you could post the problem code so it can be ignored.

              1 Reply Last reply
              0
              • S Steven Hicks n 1

                I tried to do that but it didn't work. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                try again.

                1 Reply Last reply
                0
                • S Steven Hicks n 1

                  How can i send a WM_LBUTTONDOWN message from a Win32 program, without the user pressing the Left button Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

                  F Offline
                  F Offline
                  Fariborz
                  wrote on last edited by
                  #8

                  One possible way is using API mouse_event ::mouse_event ( MOUSEEVENTF_LEFTDOWN , mouseX , mouseY , NULL , NULL ) look in MSDN for full description of MouseX , MouseY .

                  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