Basically my intent was for it to click a spot, press f5, and click a spot three more times, press f1, then mousemove and click another spot.
It works half the time; I think the problem is the BlockInput function. I don't want to be able to move my mouse during the script execution, as that seems to mess up the script.