This project is read-only.

Unable to click using Clickable Point

Feb 10, 2012 at 5:51 PM


I want to clickon a custom UI control which UISpy does not recognize. The only alternate I have is to use points. But this is not working for me. My code is given below.


POINT clickablePoint = new White.Core.WindowsAPI.POINT

(myPanelUIItem.Bounds.TopLeft.X+30, myPanelUIItem.Bounds.TopLeft.Y-30);


When I use Mouse.Instance.Click with the above statement I am getting the error

The best overload method match for "White.Core.Inputdevices.Mouse.Click(System.Windows.Point) has some invalid arguments

Please help.

Apr 16, 2012 at 2:47 AM

my code, and works:

System.Windows.Point currentPoint = boundingItem.Bounds.TopLeft;
currentPoint.Offset(40, 20);
 Attached mouse = White.Core.Desktop.Instance.Mouse;
 mouse.Location = currentPoint;;