Ejemplo n.º 1
0
        public override bool TryGetClickablePoint(out Point point)
        {
            var tagPoint = new UIA.tagPOINT {
                x = 0, y = 0
            };
            var success = ComCallWrapper.Call(() => NativeElement.GetClickablePoint(out tagPoint)) != 0;

            point = success ? new Point(tagPoint.x, tagPoint.y) : null;
            return(success);
        }
Ejemplo n.º 2
0
        public override bool TryGetClickablePoint(out Point point)
        {
            var tagPoint = new UIA.tagPOINT {
                x = 0, y = 0
            };
            var success = ComCallWrapper.Call(() => NativeElement.GetClickablePoint(out tagPoint)) != 0;

            if (success)
            {
                point = new Point(tagPoint.x, tagPoint.y);
            }
            else
            {
                success = Properties.ClickablePoint.TryGetValue(out point);
            }
            return(success);
        }
Ejemplo n.º 3
0
 public static Point ToPoint(this UIA.tagPOINT p)
 {
     return(new Point(p.x, p.y));
 }