08-08-2008, 12:17 PM
Can you add to QM next version functions to Screen Scrape Text Capture... like http://www.mjtnet.com/blog/2008/01/03/s ... re-example?
Screen Scrape Text Capture
|
08-08-2008, 12:17 PM
Can you add to QM next version functions to Screen Scrape Text Capture... like http://www.mjtnet.com/blog/2008/01/03/s ... re-example?
08-08-2008, 12:43 PM
Function Dialog68
\Dialog_Editor
08-08-2008, 01:57 PM
Can you add the functions: GetTextAtPoint, GetTextInRect, GetWindowTextEx, WaitScreenText?
08-08-2008, 02:10 PM
You can get text of a particular accessible object. Can you give an example where getting text from whole screen or window or point or rectangle would be better?
08-08-2008, 02:23 PM
In objects like systreeview, sysheader...Dialog68 doesn't work.
The function in the "other program": http://www.mjtnet.com/onlinehelp.htm Quote:GetWindowTextEx>window_title,text
08-08-2008, 02:27 PM
08-08-2008, 02:39 PM
I want a function that extract text anywhere on the screen regardless of object, like GetTextInRect.
08-08-2008, 02:58 PM
I expected you have a particular task where you would use it.
Don't know how macro scheduler gets the text. It is different than if it would use accessible objects, but it is not OCR because does not work in some windows. Probably hooks text APIs.
10-10-2008, 07:26 PM
Does QM have a function similar to 'GetTextInRect'. If not could one be made?
Thanks.
10-10-2008, 08:11 PM
Doesn't have. Cannot be made. Will not have in the future.
12-14-2008, 11:03 PM
May i ask why this is not possible? Just out of curiousity.
Thanks
12-15-2008, 08:35 AM
Very much work etc, and i think not so useful.
12-15-2008, 10:08 PM
ok 1 good use i can think of is for something that has nor a id or can be found using html or Acc.
Sometimes there are things in windows that cant be found using them so this might help.
12-19-2008, 05:29 AM
Anyway to make something like this work for me?
Maybe a sample code to work off of... thanks.
12-19-2008, 06:55 AM
Only scan.
12-19-2008, 11:42 AM
Found a screen text capture component that works in the same way as macro scheduler. Does not use OCR, therefore is fast and accurate. It is shareware, ie stops working after x days. Single license costs $100.
http://www.deskperience.com/screen-scra ... turex.html Download and install. Then can use in QM. Also can be used without installation, you only have to copy all the dll files and register tcapturex.dll (eg using RegisterComComponent or type libraries dialog). Examples. Macro out Macro
12-19-2008, 08:27 PM
Also tested this.
http://www.renovation-software.com/text ... b-sdk.html Single license costs $30. Works with more programs, including openoffice. Could not compare speed because the evaluation version shows a message box every time. Macro
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 out 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!
12-20-2008, 08:42 AM
Don't know what it means. Here works well in exe.
Are you using Vista? Now I cannot test because UAC turned off, but I think these components would not work with windows of admin programs if exe is running not as admin (in QM works because it is running as admin). Try to run QM as User (set it in Options) and then run the macro in QM. If this is the reason, the macro will fail too.
12-20-2008, 12:59 PM
Where is run QM as user located in options? I can't find it.
12-20-2008, 01:06 PM
General.
Only in QM 2.3.0 and later.
12-20-2008, 01:09 PM
No, better try with another window that is not admin. Then should work. For example QM by default runs as admin and te exe macro will probably will not work with it. Try with eg notepad. Or run exe as admin, then should work with all windows.
12-20-2008, 09:13 PM
Ok i fixed that to work.
Thanks.
01-29-2009, 08:34 PM
Why doesn't work:
out ;captures text of mouse point typelib TCaptureXLib {92657C70-D31B-4930-9014-379E3F6FB91A} 1.1 TCaptureXLib.TextCaptureX t._create POINT p; xm(p) int x y hwnd=win(p.x p.y) str b=t.GetTextFromPoint(hwnd p.x p.y) out b
01-29-2009, 08:40 PM
I cannot test but probably because p is in screen coordinates and the function needs window coordinates, maybe client.
01-29-2009, 09:35 PM
This code neither works:
out ;captures text of mouse point typelib TCaptureXLib {92657C70-D31B-4930-9014-379E3F6FB91A} 1.1 TCaptureXLib.TextCaptureX t._create int hwnd=win(mouse) POINT p; xm(p hwnd 1) str b=t.GetTextFromPoint(hwnd p.x p.y) out b
01-29-2009, 10:02 PM
01-29-2009, 10:13 PM
Thank you very much.
01-04-2010, 03:17 AM
Macro
Trigger F6 ![]() out How come this does not work anymre... errors at, if(t.CaptureInteractive(hwnd x y cx cy)) ret saying.. Error (RT) in Macro: 0x80040201, An event was unable to invoke any of the subscribers
01-04-2010, 09:25 AM
Isn't full error
Error (RT) in Macro335: 0x80040201, An event was unable to invoke any of the subscribers Trial version expired. Please activate the library. ? The first line error description is incorrect. |
« Next Oldest | Next Newest »
|