Could you please provide more Mouse function

Apr 23, 2008 at 7:33 AM
Edited Apr 24, 2008 at 8:01 AM
firstly, i am very happy to see Microsoft release this framework.

i just go through the Input.cs which provide Mouse function such as click.

could you please add more complex ones, such as:
Drag(). i mean press mouse button at (x1,y1) then release at (x2,y2). because i need draw a line or create a Rectangle region .
another thing is some time mouse action will combine with keyboard, such as Ctrl+"MouseLeft".

here is my expected functions:

at here:
MouseClickType {SingleClick ,DoubleClick ,}
MouseFlags {
LeftButton ,
MiddleButton ,
RightButton ,
}
KeyboardFlags
{
NoFlag ,
ShiftFlag ,
ControlFlag ,
AltFlag ,
LAltFlag ,
RAltFlag ,
}

Click(MouseClickType clickType);
Click(MouseFlags button);
Click(MouseClickType clickType, MouseFlags button);
Click(MouseClickType clickType, MouseFlags button, int relativeX, int relativeY, KeyboardFlags keyFlag);
Click(MouseClickType clickType, MouseFlags button, int relativeX, int relativeY, KeyboardFlags keyFlag, bool verifyVisible);
ClickDrag(int absoluteToX, int absoluteToY);
ClickDrag(MouseFlags button, int absoluteToX, int absoluteToY);
ClickDrag(MouseFlags button, int relativeFromX, int relativeFromY, int absoluteToX, int absoluteToY, KeyboardFlags keyFlag);
ClickDrag(MouseFlags button, int relativeFromX, int relativeFromY, int absoluteToX, int absoluteToY, KeyboardFlags keyFlag, bool smoothDrag);
ClickDrag(MouseFlags button, int relativeFromX, int relativeFromY, int absoluteToX, int absoluteToY, KeyboardFlags keyFlag, bool delay, bool tridentHack);

i know all these need native method support.

thanks!!!
Aug 12, 2008 at 3:53 AM

Hi Guys

      Do we have any update on the Mouse Click Events. I have an requirement where i have to click on a specific Co-Ordinates on a window. Could some one let me know how to use the functions for the mouse click.

        Window.Click does not accepts any parameters to it. Like X and Y co-Ordinate.    

 

 

Window window = application.GetWindow("Dashboard", InitializeOption.NoCache);

 

window.Click();

Thanks

Bagya

 

Aug 14, 2008 at 7:06 AM
Does anybody have solution to this??