Bat File - Focus and Refresh IE
Posted on 2011-10-18
I don't know if this is possible, but doing some googles didn't return much result. I want to create a bat file that I will schedule to run every 30 minutes. I want this bat file to focus on Internet Explorer, do a Refresh, and finall an Enter key and then close.
Basically, I have a reporting services that requires some parameters. Each time I hit "F5" to refresh it would error out. I have a user that would like to have the report refresh every 30 minutes so he can get most up to date info without having to do it every 30 minutes or so. I was thinking that if I can get a bat file to focus on IE and refresh the page, it would fix his problem. Only issue is that since there are some parameters involve, it would error out if I hit "F5".
Error is: The page cannot be refreshed without resending the information. Click retry to send the information again, or click cancel to return to the page that you were trying to view.
So I was hoping that a bat file can be set to focus on IE, hit F5, and then either hit "R" or "enter" key to get rid of the error. If it does it quick enough, it would be seamless to the user other than his browser refreshing every 30 minutes.
So anyone might be able to help with such a script or point me to something that I can use as an example to get started? Criteria is focus on IE, hit "refresh" or "F5", and then hit "R" or "Enter" key. If there's a better way, that'll be even better. Thanks in advance.