How do I do actions/scripts

Have a look at the FAQs: