This function actually just clicks once and does nothing else. It should schedule a call to itself so that it repeats.
function autoClick()
{
cancel($autSch);
mousefire(1);
schedule(30,0,mousefire,0);
$autSch = schedule(60, 0, autoClick);
}
The "cancel" call will stop another cycle of auto clicks from continuing.