Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very basic question: Windows name from hwnd
#1
Hi All,
I feel pretty silly about this one. I feel like I should know how to do this by this point BUT:
I want to sometimes get the window name from a window under the mouse key.
I can get the hwnd of the active window via
Code:
Copy      Help
int win
or from mouse focus via
Code:
Copy      Help
int win(mouse)
. But I can't seem to figure out how to get the name of that window.

Maybe it's something I don't understand about how the nature of what a unique handle integer variable is or how it is assigned.

I'm sure I will feel even more silly after I see the answer (pre-emptive :oopsSmile

S
#2
Look in function outw. It gets name and class from hwnd.
#3
I am very :oops:

Code:
Copy      Help
out _s.getwintext(win)
out _s.getwintext(win(mouse))
I have only previously used getwintext for window/dialog element but not the window itself. How simple and effective!
Thanks as always!,
S


Forum Jump:


Users browsing this thread: 1 Guest(s)