Hello Rohan!

Turn on the recorder and do what you need to do. Then stop the recorder and go to the code windows and analyze your code. If you need further assistance, post and I will provide the code for you.

Everything you have posted are able to be done.