A court has been told a man accused of killing a Perth schoolboy had been out hunting schoolkids armed with a metal pole.