01-21-2010, 08:45 PM
I also often use these.
Function outw
Function outRECT
Function outref
Function outw
;/
function hwnd [$prefix]
;Displays window handle, class and text (first line) in QM output.
if(!hwnd) out 0; ret
str s.getwinclass(hwnd); err
str ss.getwintext(hwnd); err
ss.trim; ss.getl(ss 0)
out "%s%i %s ''%s''" prefix hwnd s ssFunction outRECT
;/
function RECT&r
out "L=%i T=%i R=%i B=%i W=%i H=%i" r.left r.top r.right r.bottom r.right-r.left r.bottom-r.topFunction outref
