This is a migrated thread and some comments may be shown as answers.

Mouse click not clicking?

7 Answers 281 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 02 Mar 2011, 09:20 PM
Hey all,

I have another problem with my deployment of my WebAii.  It seems I've lost control of my mouse (and keyboard) events.  I can see the Annotation telling me that it's clicking the element on my screen, but the click isn't respected.

Any ideas as to what can be going wrong?

I've tried a few suggestions based on my research:
manager.Desktop.Mouse.Click(MouseClickType.LeftClick, System.Drawing.Rectangle.Round(element.GetScreenRectangle()));
element.User.Click(MouseClickType.LeftDown);
Thread.Sleep(50);
element.User.Click(MouseClickType.LeftUp);

I always see the annotation telling me it's being clicked, and it's on the correct element, but again, nothing happens.

7 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 08 Mar 2011, 01:57 PM
Hi Tony,
     try using a desktop mouse click like this:
Manager.Desktop.Mouse.Click(MouseClickType.LeftClick, 500,1000);
Where 500 and 1000 are respectively the x and y coordinates of the click. You'll probably have to do some guess work to get the coordinates right.

Let me know how it goes!

Regards,
Stoich
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
John
Top achievements
Rank 1
answered on 21 Mar 2011, 06:03 PM
I too have this problem. Why doesn't User.Click just work? It was working ok a week or so ago?
J
0
Stoich
Telerik team
answered on 23 Mar 2011, 10:44 AM
Hi John,
   I can't answer that question without taking a look at the particular control. Would it be possible for you to grant me access to the application exhibiting the behavior? Alternatively, you can find a public application that demonstrates the problem and send that to me.

You can do it in a support ticket. Unlike a forum post, a support ticket is completely confidential.

Hope to hear from you soon!

Best wishes,
Stoich
the Telerik team
0
Alexey Ivanov
Top achievements
Rank 1
answered on 08 Apr 2011, 02:21 PM
I had the same problem and I managed to isolate it.
If two clicks are made too fast, then the browser treats them as double-click.

The solution:
create your own function that will remember the last click time and hold 500ms since it. It's the default double-click interval on Windows.
0
Stoich
Telerik team
answered on 14 Apr 2011, 12:06 PM
Hi Tony,
    did you manage to get the problem resolved?

Kind regards,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
John
Top achievements
Rank 1
answered on 17 Apr 2011, 12:01 AM
Hi,
  I've moved on from this problem, but if memory serves, I think it was for internet explorer we had to  'click to activate' the silverlight plug-in, initially. At startup we click on the silverlight canvas and go from there.
  Hope this helps someone!
  John
PS Please invest in the WebAii product - it's great but needs some decent documentation and tutorials to get people going! :-)
0
Asta
Top achievements
Rank 1
answered on 21 Mar 2012, 11:16 PM
How do you fixed that?
Tags
General Discussions
Asked by
Tony
Top achievements
Rank 1
Answers by
Stoich
Telerik team
John
Top achievements
Rank 1
Alexey Ivanov
Top achievements
Rank 1
Asta
Top achievements
Rank 1
Share this question
or