Activity log for bug #1883605

Date Who What changed Old value New value Message
2020-06-15 21:02:23 Chris Kosieracki bug added bug
2020-06-15 21:02:23 Chris Kosieracki attachment added Image file for using in script https://bugs.launchpad.net/bugs/1883605/+attachment/5384157/+files/test%20image.png
2020-06-16 12:18:18 RaiMan sikuli: status New In Progress
2020-06-16 12:18:21 RaiMan sikuli: importance Undecided Medium
2020-06-16 12:18:24 RaiMan sikuli: assignee RaiMan (raimund-hocke)
2020-06-16 12:18:30 RaiMan sikuli: milestone 2.0.5
2020-06-16 12:19:37 RaiMan summary Problems with region.text() in 2.0.4 [2.0.4] Match does not act like Region using set(XYWH)
2020-06-16 12:23:51 RaiMan summary [2.0.4] Match does not act like Region using set(XYWH) [2.0.4] Match does not act like Region using text()
2020-06-16 12:26:32 RaiMan description 2.0.4-2020-03-14_08:01/Mac10.14.5/Java8(64)1.8.0_251-b08 This was working in 1.1.4 I'm using the find(image) to set a region, then modify its boundaries for use in region.text() The region.text() is now finding the text in the original region rather than the modified region. Open the attached file 'text image.png' and use a screenshot of it to replace the image in the first line of the script Here is the simplified script: tc = Pattern("1592253974892.png").similar(0.89) if exists(tc): reg1 = find(tc) reg1.setX(reg1.getX()+reg1.getW()) reg1.setW(105) reg1.highlight(1) bld = reg1.text() print(bld) else: print('not found') ----------------------- workaround cast Match to Region instead reg1 = find(tc) use reg1 = Region(find(tc)) ----------------------------------------------------------- 2.0.4-2020-03-14_08:01/Mac10.14.5/Java8(64)1.8.0_251-b08 This was working in 1.1.4 I'm using the find(image) to set a region, then modify its boundaries for use in region.text() The region.text() is now finding the text in the original region rather than the modified region. Open the attached file 'text image.png' and use a screenshot of it to replace the image in the first line of the script Here is the simplified script: tc = Pattern("1592253974892.png").similar(0.89) if exists(tc):     reg1 = find(tc)     reg1.setX(reg1.getX()+reg1.getW())     reg1.setW(105)     reg1.highlight(1)     bld = reg1.text()     print(bld) else:     print('not found')
2020-06-16 12:49:59 RaiMan summary [2.0.4] Match does not act like Region using text() [2.0.4] Match does not act like Region using text() --- fixed in 2.0.5
2020-06-16 12:50:10 RaiMan sikuli: status In Progress Fix Committed
2020-06-16 12:50:17 RaiMan sikuli: importance Medium High
2020-06-16 12:54:40 RaiMan sikuli: importance High Critical