12-20-2008, 08:34 AM
Ok i found this one to be the best, but when i even just put this in exe to try it, wont work.
Macro
Any idea why it fails in exe?
This is output....
Error (RT) in "Macro3 /224"oMacro3: 0x80040203, A syntax error occurred trying to evaluate a query string
Capture timeout.
It highlights this...
str s=t.GetTextFromRect(hwnd x y cx cy)
Thanks!
Macro
out
;captures text of user selected rectangle
typelib TCaptureXLib {92657C70-D31B-4930-9014-379E3F6FB91A} 1.1
TCaptureXLib.TextCaptureX t._create
int hwnd x y cx cy
if(t.CaptureInteractive(hwnd x y cx cy)) ret
str s=t.GetTextFromRect(hwnd x y cx cy)
out s
Any idea why it fails in exe?
This is output....
Error (RT) in "Macro3 /224"oMacro3: 0x80040203, A syntax error occurred trying to evaluate a query string
Capture timeout.
It highlights this...
str s=t.GetTextFromRect(hwnd x y cx cy)
Thanks!