Reading Windows Captions.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ryanrules786
    New Member
    • Oct 2008
    • 2

    #1

    Reading Windows Captions.

    I was wondering is anyone could let me know how I would read the captions of all open windows.

    Thanks.

    -Ryan
  • vdraceil
    New Member
    • Jul 2007
    • 236

    #2
    Use GetWindowText() API function.
    You have to pass the window's handle to get the text on its title bar.

    Comment

    • Ryanrules786
      New Member
      • Oct 2008
      • 2

      #3
      Originally posted by vdraceil
      Use GetWindowText() API function.
      You have to pass the window's handle to get the text on its title bar.
      I've called the function but I don't know how to pass the window's handle.

      Anyone help me on this?

      -Ryan

      Comment

      • vdraceil
        New Member
        • Jul 2007
        • 236

        #4
        you can use GetForegroundWi ndow() to get the handle of the foremost window,,
        GetWindow() can also be used..
        pls refer MSDN help n you'll get to know everything you wanna know.

        Comment

        Working...