First, please search the web to learn more about KTable object model (a good starting point could be this
link[/url).
To your question, there are at least 2 approaches available:
1) Use the ClickCell(row, col, mouse_button, modifier) method - As with a regular JTable.
2) Use the Mercury.DeviceReplay to send a mouse event after getting the appropriate coordinates based on the index of the selected row and the height of a table row.
GeSHi (qtp):
Function ClickCell
(ByVal intRowId, ByVal intColId, ByVal intMouseButton, ByVal intModifier
) Dim dr, objPoint
Set dr =
CreateObject("Mercury.DeviceReplay") Set objPoint =
New Point
'a custom class (data structure) with two public members X and Y 'TODO: Implement the code to get the coordinates of the selected row at the mid of the cell on which to do the mouse click With dr
If IsNumeric(intModifier
) Then .
KeyDown intModifier
.
MouseClick objPoint.
X, objPoint.
Y, intMouseButton
If IsNumeric(intModifier
) Then .
KeyUp intModifier
End With Set dr =
Nothing Set objPoint =
NothingEnd Function Created by GeSHI 1.0.7.20
You can learn more about the DeviceReplay object
here