The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to find datagrid row or cell not displayed on screen
#1
Hi Gintaras!
Long time QM user, first time posting.
a while back (2006?) you provided a QM Acc function to iterate through a .NET datagrid even when row and/or cell was not visible on screen. the function name is Acc.GetNetDataGridCell.

https://www.libreautomate.com/forum/show...taGridCell

trying to do the same but in LibreAutomate.
LibreAutomate it can capture all rows but it errors out when it reaches the row that is not visible unless the scrollbar pages down. it returns a null variable when it reaches the row.

can you help converting the QM function to LibreAutomate?

Member function Acc.GetNetDataGridCell
Code:
Copy      Help
function# nColumns [row] [col] [Acc&ac]

;Retrieves accessible object for specified cell in NET data grid.
;This object must be data grid. You can call this function multiple times with it.
;Returns the number of used rows.
;nColumns is the number of columns in the grid.
;row and col are 1-based row and column indexes.

;EXAMPLE
;Acc aGrid=acc("DataGrid" "TABLE" win("Customer Details" "WindowsForms10.Window.8.app4") "WindowsForms10.Window.8.app4" "" 0x1001)
;Acc aCell
;int i
;for i 0 aGrid.GetNetDataGridCell(11)
,;aGrid.GetNetDataGridCell(11 i+1 1 aCell)
,;out aCell.Value
,;;aCell.SetValue("new value")


int n=a.ChildCount-nColumns-2
if(&ac)
,if(row>n) end "row too big"
,str s.format("child%i child%i" row+nColumns+1 col)
,;out s
,;out &ac
,Navigate(s ac)
,
ret n
err+ end _error


Messages In This Thread
Not able to find datagrid row or cell not displayed on screen - by LibreAutoUser - 01-28-2024, 07:51 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)