Is it possible to get the name of the currently active control?
Something like ctrlname := WinGetControl("A") or WinGet, ctrlname, Control, ahk_id %hwnd% and it would return "Scintilla1" or "Edit2" or so?
I know that you can use Window Spy, and I know that you can get a list of all control names with WinGet, ctrlist, ControlList..., but I want to find out programmatically the name of the controler the cursor is in.
ahk_control?
Re: ahk_control?
Use ControlGetFocus, specifying A for the WinTitle parameter.
Re: ahk_control?
Thank you!!! That's what I was looking for.
However, when I do it in Firefox's or Opera's URL bar, it shows nothing. Hmmm
However, when I do it in Firefox's or Opera's URL bar, it shows nothing. Hmmm
Re: ahk_control?
If you can't see it with the Window Spy tool, then you aren't going to get it programmatically either. It doesn't use addressable controls.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Tech Stuff, Vanda_a and 374 guests