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#
  4. FindWindowEx API and disabled buttons

FindWindowEx API and disabled buttons

Scheduled Pinned Locked Moved C#
jsonhelpquestion
3 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.
  • N Offline
    N Offline
    nemopeti
    wrote on last edited by
    #1

    Hi All! I creating a program, wich is like a macro recorder. It's work fine, and found windows, buttons, and all I need. But I want to send button clicks too, and my problem is I can't detect the enebled/disabled status of a button. I need this status, becouse the API find the buttons wich is not active :doh:. So how can I detect this status of a button, when I know only it's handle and then informations given by GetWindowInfo API. Thank's for answer!

    S 1 Reply Last reply
    0
    • N nemopeti

      Hi All! I creating a program, wich is like a macro recorder. It's work fine, and found windows, buttons, and all I need. But I want to send button clicks too, and my problem is I can't detect the enebled/disabled status of a button. I need this status, becouse the API find the buttons wich is not active :doh:. So how can I detect this status of a button, when I know only it's handle and then informations given by GetWindowInfo API. Thank's for answer!

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      Provided you have the window handle, you could use IsWindowEnabled[^] to get the state of the window.

      Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      N 1 Reply Last reply
      0
      • S S Senthil Kumar

        Provided you have the window handle, you could use IsWindowEnabled[^] to get the state of the window.

        Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        N Offline
        N Offline
        nemopeti
        wrote on last edited by
        #3

        Thank's for your help, I think that's what I looking for :)

        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