Both sides /cap ends hotkey for offset ?

 From:  K3nny
9832.1 
Hi guys

I have done a search all over this site for a script that will toggle the both sides option for offset curve and havent found one.
I did manage to find one for extrude tho which is nice.
Is it also possible to have a script to bind to a hotkey that works for both offset and extrude?
Also an option for cap end would be great too
Cheers

K3nny