Mouse.Click problem

Jan 14, 2011 at 9:55 PM

Hi there I have a control that cannot be recognised so I just want to click the mouse at the position of the button.

I am trying to use Mouse.Click but I am having issuesm what am i doing wrong

AttachedMouse mouse = win.Mouse;
          

            mouse.Click(new System.Drawing.Point(0, 50));
Thanks in advance

Jan 17, 2011 at 11:29 AM

What kind of issue?

 

Does the click don't work or do you get an exception?

 

Throndorin

Jan 19, 2011 at 10:26 PM

I get this error

Error 1 The best overloaded method match for 'White.Core.InputDevices.AttachedMouse.Click(System.Windows.Point)' has some invalid arguments

Jan 20, 2011 at 2:47 PM

Hi

 

you should use System.Windows.Point, instead of

System.Drawing.Point