10 ms·
That would be great ! Unfortunately, we cannot control/move the mouse in javascript (as far as I know). But, thanks for the suggestion !
by alain_gilbert 14y ago
That would be great !
Unfortunately, we cannot control/move the mouse in javascript (as far as I know).
But, thanks for the suggestion !
- powrtoch 14y agoTechnically true, but you can fake it if it really strikes your fancy. http://stackoverflow.com/questions/4804068/move-mouse-cursor-javascript http://stackoverflow.com/questions/4804068/move-mouse-cursor...
- alain_gilbert 14y agoI've try to do some hacks today, and the best I can do is to create a fake cursor, and generate click on specific DOM elements. It's impossible to fake a click on a precise screen position. The only way I think that it can be done: - Create a dom selector that will gets all the links and inputs. - For each elements, verify if the pointer is inside (over) the element. - Then create a fake click for that element. I just thought about it, I don't know if it could be viable/fast enough...
- ramirez60 14y agoActually there is a way to simulate it. Using yahoo's YUI library there was some things that let you simulate mouse events on a page. Worked pretty well but rather processing intensive. We later ripped it out to something without all the extra YUI stuff. (Full disclosure, work at Flypad on game control stuff)
- deleted 14y ago[deleted]