Imagine some random website controlling your mouse ... not cool, is it? (This is why you cannot force mousemove through javascript)
However, you can trigger clicks on items. To do this, you need to save the event (mouse-over | out / (dbl) click / whatever) and the corresponding element (in eventfunction: this). This should be enough to simulate a workflow.
JQuery Example:
$('#item').click(); $('#item').trigger('click');
vanilla javascript:
document.querySelector("#item").click();
source share