04-28-2011, 04:18 PM
This code retrieve the text from a tool tip that appears when you move mouse over a cell of a JavaTable. The code parse the table line by line and retrieve the tool tip value that appears on every line
Code:
Set objJavaTable=JavaWindow("CM Uebersicht").JavaTable("Javatable").Object
set Rect=objJavaTable.getCellRect(counter,0,True)
RectString=Rect.ToString()
intermediar1=split(RectString,"=",3,1)
intermediar2=split(intermediar1(1),",",2,1)
intermediar3=split(intermediar1(2),",",2,1)
x=Cint(intermediar2(0)) +10
y=Cint(intermediar3(0))
JavaWindow("CM Uebersicht").JavaTable("Javatable").FireEvent micMouseMove ,50, 0,x, y, 1, "OFF"
test2=JavaWindow("CM Uebersicht").JavaObject("JToolTip").Exist(1)
set objToolTip=JavaWindow("CM Uebersicht").JavaObject("JToolTip").Object
DocumentStatus=objToolTip.getTipText()