You're looking to create a macro: the best way to do this is probably:
http://www.autohotkey.com/
using a downloading script that uses this command:
http://www.autohotkey.com/docs/comma...loadToFile.htm
however, I'm not sure if it would work with the realplayer syntax... could be worth a shot though.