There are sniping programs out there that solve this problem for you. I use esnipe.