Problem getting text from with strange app

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Problem getting text from with strange app

Post by rullbandspelare » Wed May 29, 2019 3:00 pm

Any help and suggestion is welcome!

I am looking for the text "HereIAM" in a Window Called SoftwareWin. (Always in the same position)

- Text Capture Wizard can not find any text at all.

- "FindObject Wizard" finds this OK. But The resulting code is not working
Window: 850D48 [HwndWrapper[Can.M210.App.exe;;9028b7b1-6731-440c-85a7-8d087498a576]]
UIAutomation Name:
UIAutomation Value: HereIAM
Parent: SoftwareWin

"Insert Code" Gives:

Code: Select all

GetWindowHandle>Find Object Wizard,hWndParent
FindObject>hWndParent,TTabbedNotebook,,1,hWnd,X1,Y1,X2,Y2,result
This is working, but ugly!
It gives all the objects and I have to parse out the result

Code: Select all

UIAccessibleList>SoftwareWin,resList
Gives:

SoftwareWin= [-32000,-32000,160x28]
= [-32000,-32000,1920x1080]
User= [-31998,-32000,180x38]
Capture= [-31816,-32000,180x38]
Report= [-31634,-32000,180x38]
= [-31444,-32000,22x40]
Settings= [-31233,-32000,84x38]
= [-30719,-32000,45x38]
Logout= [-30659,-32000,130x38]
= [-30514,-32000,45x38]
= [-30469,-32000,389x40]
CanDiv= [-30160,-31994,60x28]
= [-32000,-31959,1920x1039]
= [-32000,-31959,1920x180]
ID= [-31970,-31936,76x22]
=HereIAM [-31845,-31939,392x28]
= [-31970,-31877,517x68]
Name= [-31968,-31877,46x23]
....


Thanks!

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Problem getting text from with strange app

Post by Dorian (MJT support) » Fri May 31, 2019 9:54 am

Have you tried the OCR Wizard instead?
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts