da' un'occhiata qui

http://www.dicesare.com/programmazio...in-automatico/