You need to describe how you want this to work, e.g. do you want a pulse of fixed duration every time the switch position is change changed, a pulse when moved to one position but not the other, do you want active low or active high pulse, what voltage etc..