Yes it's possible. But no one is here for coding things for you. You should try to code it by yourself. Is not that hard at the end.
I wasn't asking you to code it for me I said "if its possible could some one script it or LEAVE A LINk to an tutorial". Any other person could help me?