Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Screen Scrape Text Capture
#18
Ok i found this one to be the best, but when i even just put this in exe to try it, wont work.

Macro
Code:
Copy      Help
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!


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)