Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move mouse cursor on an element

How can I change position of the mouse cursor on an element when page loading is over with jQuery?

like image 560
Chalist Avatar asked Jan 20 '10 23:01

Chalist


People also ask

How do you move the mouse pointer in a particular direction?

To make the cursor begin moving in a specified direction Say Move mouse <direction>. The cursor can move up, down, left, right, or a combination like left and up.

How do I move my mouse without touching it?

The device, which is called a "mouse mover" or a "mouse jiggler," is placed under your computer's mouse which allows the users to escape their desks for hours while it keeps the cursor active Mouse movers are small devices that go under a computer's mouse (not a laptop trackpad) and keep the cursor active without any ...

Can a macro move your mouse?

This option instructs the macro to move the mouse cursor relative to its position on the computer screen. Use the "Screen Coordinates" numbers from the Mouse Locator with this option. This option instructs the macro to move the mouse cursor relative to its position within the window that is active.

How do you move your mouse over to a specific element in selenium?

We can move mouse pointer to a specific location or element in Selenium webdriver(C#) using the Actions class. We have to first create an object of this class. Next to move an element we have to apply the MoveToElement method and pass the element locator as a parameter to this method.


2 Answers

This is not possible.

I also disagree with highjacking the users mouse position, even if it were possible. If you did that to me as a user I would immediately leave your site.

JavaScript was designed this way on purpose. Imagine the internet as it is today with all the crappy sites and exploits out there, mix in the ability to control the users mouse and you have a much worse experience.

Let your users decided what they want to click on.

like image 196
JP Silvashy Avatar answered Sep 28 '22 00:09

JP Silvashy


If you're wanting to physically move the mouse for the user, this can not be done with Javascript or any other typical web technology.

I'd say I'm sorry, but I'm not. That's one of the worst possible things you could do to a user.

like image 41
Matchu Avatar answered Sep 28 '22 02:09

Matchu