$dll_file = "TCaptureX.dll"
$Dll = DllOpen("TCaptureX.dll")
$winhand= WinGetHandle('')
$string = DllCall($dll,"str","GetTextFromRect","hwnd", $winhand,"long",0,"long",0,"long",400,"long",400)
MsgBox(0,'info',$string)
DllClose($dll)
"GetTextFromRect" method captures the text from the rectangle specified (left, top,
width, height) in screen coordinates, in the window specified by hwnd.
But the above code, $string returns null