You can code such a program with many language such as C VC dephi VB, Java and so on... and you can also get bundle of such public source codes if you search with google.... using key words Web robot or browser robot or something like this.
what's more, if you like to pay enough money, I can write a program for you specially.