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. total mouse control

total mouse control

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
5 Posts 2 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.
  • R Offline
    R Offline
    Raphael Kindt
    wrote on last edited by
    #1

    hi world I want to get all mouse messages towards my application... I mean when the mouse move outside the window of my application, my application receive mouse messages nevertheless (and thus mouse coordinates too)! I already use Set/Get/ReleaseCapture and SetWindowsHookEx but when the mouse is outside my application I couldn't receive mouse message... My question: How to receive ALL mouse message towards my application? Even if the mouse moves outside the main window of my application... Thanks in advace... Hello World!!! :) from Raphaël

    D 1 Reply Last reply
    0
    • R Raphael Kindt

      hi world I want to get all mouse messages towards my application... I mean when the mouse move outside the window of my application, my application receive mouse messages nevertheless (and thus mouse coordinates too)! I already use Set/Get/ReleaseCapture and SetWindowsHookEx but when the mouse is outside my application I couldn't receive mouse message... My question: How to receive ALL mouse message towards my application? Even if the mouse moves outside the main window of my application... Thanks in advace... Hello World!!! :) from Raphaël

      D Offline
      D Offline
      Dominik Reichl
      wrote on last edited by
      #2

      As someone posted already, use SetWindowsHookEx in an injection DLL. :) -Dominik


      _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;)

      R 1 Reply Last reply
      0
      • D Dominik Reichl

        As someone posted already, use SetWindowsHookEx in an injection DLL. :) -Dominik


        _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;)

        R Offline
        R Offline
        Raphael Kindt
        wrote on last edited by
        #3

        I already do that but it seems don't work... Moreover MSDN says: You should use global hooks only for debugging purposes; otherwise, you should avoid them. Global hooks hurt system performance and cause conflicts with other applications that implement the same type of global hook. where can I find an example using a DLL? Thanks for your help! Hello World!!! :) from Raphaël

        D 1 Reply Last reply
        0
        • R Raphael Kindt

          I already do that but it seems don't work... Moreover MSDN says: You should use global hooks only for debugging purposes; otherwise, you should avoid them. Global hooks hurt system performance and cause conflicts with other applications that implement the same type of global hook. where can I find an example using a DLL? Thanks for your help! Hello World!!! :) from Raphaël

          D Offline
          D Offline
          Dominik Reichl
          wrote on last edited by
          #4

          Read the following articles: http://www.codeproject.com/useritems/winspy.asp[^] http://www.codeproject.com/dll/hooks.asp[^] http://www.codeproject.com/dll/trackuseridle.asp[^] http://www.codeproject.com/dll/keyboardhook.asp[^] Hope this helps :-D -Dominik


          _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;)

          R 1 Reply Last reply
          0
          • D Dominik Reichl

            Read the following articles: http://www.codeproject.com/useritems/winspy.asp[^] http://www.codeproject.com/dll/hooks.asp[^] http://www.codeproject.com/dll/trackuseridle.asp[^] http://www.codeproject.com/dll/keyboardhook.asp[^] Hope this helps :-D -Dominik


            _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;)

            R Offline
            R Offline
            Raphael Kindt
            wrote on last edited by
            #5

            thank you very much... Next time I will seek first in CP! :-D Hello World!!! :) from Raphaël

            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