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. Other Discussions
  3. IT & Infrastructure
  4. Recording Button Clicks

Recording Button Clicks

Scheduled Pinned Locked Moved IT & Infrastructure
questionjsonworkspace
2 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.
  • L Offline
    L Offline
    LeprosyLM
    wrote on last edited by
    #1

    Is there a way (Windows API etc) to record the names of the buttons that a user clicks? I want to be able to press record, and then in other applications tell what is being pressed. Like in the "Setup" Window the left mouse button was clicked on the "OK" button. I want to do this so that I can automate documentation of installation procedures. Anyone have any ideas how I can hack the windows to capture these events? thanks L

    B 1 Reply Last reply
    0
    • L LeprosyLM

      Is there a way (Windows API etc) to record the names of the buttons that a user clicks? I want to be able to press record, and then in other applications tell what is being pressed. Like in the "Setup" Window the left mouse button was clicked on the "OK" button. I want to do this so that I can automate documentation of installation procedures. Anyone have any ideas how I can hack the windows to capture these events? thanks L

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      Use SetWindowsHookEx() with the hook type set to WH_GETMESSAGE. Intercept the WM_LBUTTONDOWN events and use GetWindowText() to get the text of the window clicked. You would also need to identify the class of the window(eg. BUTTON) using the GetClassName() function. Bikram Singh

      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