public void DoubleClick(string rowName, string columnName) { Point p1 = SUIAccessibility.GetPositionFromText(WindowHandle, rowName); SUISleeper.Sleep(2000); if (p1.X < 0 || p1.Y < 0) { throw new Exception("can not locate string" + rowName); } Point p2 = SUIAccessibility.GetPositionFromText(WindowHandle, columnName); if (p2.X < 0 || p2.Y < 0) { throw new Exception("can not locate string" + columnName); } ClickWindow(p2.X, p1.Y + 3, 3); }
public static void MouseClickText(SUIWindow sui, string text) { Point p = SUIAccessibility.GetPositionFromText(sui.WindowHandle, text); MouseClick(sui, p.X, p.Y); }
public Point GetPositionFromText(string text) { return(SUIAccessibility.GetPositionFromText(WindowHandle, text)); }