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. The Lounge
  3. How can i send a message to Windows

How can i send a message to Windows

Scheduled Pinned Locked Moved The Lounge
questioncom
10 Posts 8 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 to the windows os? I have tried SendMessage(hWnd, WM_LBUTTONDOWN, 0,0); but it did not work. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

    D L M W 4 Replies Last reply
    0
    • S Steven Hicks n 1

      How can i send a WM_LBUTTONDOWN to the windows os? I have tried SendMessage(hWnd, WM_LBUTTONDOWN, 0,0); but it did not work. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

      D Offline
      D Offline
      dark120
      wrote on last edited by
      #2

      Umm... it should be in your MSDN cds you get with Visual Studio 6.0 . How are you using it? I've never seen your way before. If you're trying to make it react to something just type in the windows message handler: case WM_LBUTTONDOWN: whatever you want break; You probably already knew that.:) "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

      1 Reply Last reply
      0
      • S Steven Hicks n 1

        How can i send a WM_LBUTTONDOWN to the windows os? I have tried SendMessage(hWnd, WM_LBUTTONDOWN, 0,0); but it did not work. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

        L Offline
        L Offline
        Luis Alonso Ramos
        wrote on last edited by
        #3

        Remember: for programming questions use the forums, not the lounge. -- LuisR -------- Luis Alonso Ramos Chihuahua, Mexico www.luisalonsoramos.com

        S 1 Reply Last reply
        0
        • L Luis Alonso Ramos

          Remember: for programming questions use the forums, not the lounge. -- LuisR -------- Luis Alonso Ramos Chihuahua, Mexico www.luisalonsoramos.com

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

          I know but, it didn't get answered. I am tring to emulate a LButton event. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

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

            I know but, it didn't get answered. I am tring to emulate a LButton event. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

            E Offline
            E Offline
            Eric Kenslow
            wrote on last edited by
            #5

            Well heck, if it doesn't get instantly answered in the _appropriate_ forum then by all means take your question wherever you feel like asking it. ;P -- Eric

            1 Reply Last reply
            0
            • S Steven Hicks n 1

              I know but, it didn't get answered. I am tring to emulate a LButton event. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

              R Offline
              R Offline
              Reno Tiko
              wrote on last edited by
              #6

              Note to Chris Maunder, here's a suggestion to get people's dev questions answered more or at least offer more visibility so that they can possibly get answered: 1) On the left-hand side, where the bright orangey bar is, there's a huge amount of space there (at least when viewing messages in the lounge). You could use the same script that you use on the home page and place it on the left side there. And perhaps rotate between different forums on the left side. 2) Another tip to get programming questions posted to the correct place, try switching the Lounge and Questions sections on the home page, making the Questions section more visible by placing it on the top of the right column.

              1 Reply Last reply
              0
              • S Steven Hicks n 1

                How can i send a WM_LBUTTONDOWN to the windows os? I have tried SendMessage(hWnd, WM_LBUTTONDOWN, 0,0); but it did not work. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

                M Offline
                M Offline
                Mikael Edlund
                wrote on last edited by
                #7

                I suspect that this is what you are looking for. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/hh/winui/buttons\_1dpn.asp Hope it helps. /Mike

                1 Reply Last reply
                0
                • S Steven Hicks n 1

                  How can i send a WM_LBUTTONDOWN to the windows os? I have tried SendMessage(hWnd, WM_LBUTTONDOWN, 0,0); but it did not work. Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

                  W Offline
                  W Offline
                  wParam
                  wrote on last edited by
                  #8

                  I think the function you're looking for is mouse_event or SendInput on windows NT. MSDN has pretty good docs on them.

                  S 1 Reply Last reply
                  0
                  • W wParam

                    I think the function you're looking for is mouse_event or SendInput on windows NT. MSDN has pretty good docs on them.

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

                    ok thanks Visit Ltpb.8m.com Surf the web faster than ever: http://www.404Browser.com

                    1 Reply Last reply
                    0
                    • S Steven Hicks n 1

                      I know but, it didn't get answered. I am tring to emulate a LButton event. 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
                      #10

                      Didn't get it answered? You used the same phrase I gave you, i.e. SendMessage(hWnd, WM_LBUTTONDOWN, 0, 0)!!!

                      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