Is it possible to get control type if I have its ID?
I want to know if it is a button, listview, edit, toolbar etc
Control get type using hwnd
Re: Control get type using hwnd
You can find a function that will get it inside the forum post from VxE.
Code: Select all
;http://www.autohotkey.com/board/topic/45515-remap-hjkl-to-act-like-left-up-down-right-arrow-keys/#entry283368
GetClassName( hwnd )
{ ; returns HWND's class name without its instance number, e.g. "Edit" or "SysListView32"
VarSetCapacity( buff, 256, 0 )
DllCall("GetClassName", "uint", hwnd, "str", buff, "int", 255 )
return buff
}
Re: Control get type using hwnd
Thanks lain
It seems WinGetClass does the same job, but I like dllCall more
It seems WinGetClass does the same job, but I like dllCall more
Who is online
Users browsing this forum: Google [Bot] and 123 guests