Can I send a momentary pulse as a switch is toggled to off?

@wildbill and @anon57585045

Thank you Guys,
I'm not in front of it but will look at the code later. Somebody I know had tried to convince me that I would need extra circuitry, which is why I hadn't focussed on the code sufficiently before crying for help.
Appreciate your assistance and will confirm the outcome.