Sniper macro quickswitch code

Could somebody please give a code for a macro like when i press left click it automatically presses q twice, and also allows you to set the time like seconds to press q. Just give code ill post and give u 100% credits promise.