win32/api GetWindowText

K

Kyle Hunter

Hello all,

I'm using win32/api. I was using GetForegroundWindow to get the window
on top. Then I wanted to use GetWindowText to get the 'title-bar' text.
I just couldn't figure it out.

So, I google for win32/api documentation, and found one where it
enumerates through all processes and returns the GetWindowText. My
browser - Mozilla Firefox - as well as quite a few other applications
didn't show up properly. A few did, though.

How can I
1) Get the current 'caption' or 'title-bar' text of the foreground
window.
2) Is there a better way than GetWindowText? It doesn't work for many
applications so I'm wondering.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top