If you ever wanted to go AFK fishing in Minecraft, but you have no weight or tape for the mouse, here is a small script using the xdotool to emulate constant right mouse click.

search --name "Minecraft 14w31a"
key Escape
sleep 1
mousedown 3 

If you come back to your PC you just have to right click again to have the missing mouseup event.