Code: Select all
DoubleClickRow(Value, ChildId)
{
For k, v in Acc_Children(this.table)
{
If (v.accValue(ChildId) = Value)
{
SelectedRow := v
index := k
Break
}
Else If (k = this.RowCount())
Errorlevel := 1
}
acc_Location(this.Acc, 0, ParentLoc)
acc_Location(SelectedRow, 0, xpos)
Global PaneCoord := StrSplit(ParentLoc, A_Space, "x y")
Global coord := StrSplit(xpos, A_Space, "x y")
Global Clickx := coord[1] - PaneCoord[1] + 15
Global Clicky := coord[2] - PaneCoord[2] + 10
SetControlDelay -1
ControlClick,, % this.WHNDL,,,2, NA X%Clickx% Y%ClickY%
return index
}