How can I make an animated mouse move across the screen and click a button?
It would be good for demonstration purposes!
Ideally, it would be in javascript and/or jQuery.
EDIT: there is a gigantic javascript file that the page calls, and that would take me a long time to parse and understand. That is why i am asking
function googleItForThem() {
if ($.getQueryString({ id: "fwd" })) redirect();
$("body").css("cursor", "wait");
fakeMouse.show();
instruct("play.step_1");
fakeMouse.animate({
top: (inputField.position().top + 15).px(),
left: (inputField.position().left + 10).px()
}, 1500, 'swing', function(){
inputField.focus();
fakeMouse.animate({ top: "+=18px", left: "+=10px" }, 'fast', function() { fixSafariRenderGlitch(); });
type(searchString, 0);
});
function type(string, index){
var val = string.substr(0, index + 1);
inputField.attr('value', val);
if (index < string.length) {
setTimeout(function(){ type(string, index + 1); }, Math.random() * 240);
}
else {
doneTyping();
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With