Old post was deleted so I am reposting this with the source instead of the file.
This works if you use Sleight of Hand + any sniper(Only Intervention and Barret were tested with every scope BUT acog).
Your left mouse button must be the shoot button and your right button must be the zoom button.
Copy the code into Notepad and save it as Quickscope.ahk. Make sure that when it prompts you to save that you have the filetype set to All Files rather than .txt only.
Code
~Xbutton2::Suspend
Rbutton::
{ GetKeyState, state, Rbutton, T
{
send {RButton Down}
sleep 270
MouseClick,left
send {RButton Up}
}
}