Answer the question
In order to leave comments, you need to log in
How to disable the window with the question of the appropriateness of the action when reloading the web page in C#?
In C#, in an object of class System.Windows.Forms.WebBrowser , the Refresh() method is called on a timer (once every 10 seconds ) . The problem is that when reloading pages for which data transfer was carried out, a window opens, as in the screenshot.
When I press "Repeat", I, of course, get the effect I want. But I need the reboot to be carried out automatically, without my intervention. How can I reboot without displaying the specified message? PS And yes, just in case ,
I’ll clarify that this is for automatically repeating one tedious action A in one online game B.
Answer the question
In order to leave comments, you need to log in
It's best to use HttpWebRequest or HttpClient for automation purposes... But it's a bit more complicated than auto-refresh. And WebBrowser was outdated at the time of its appearance.
There is a much simpler option: the Opera browser. I don’t know if this feature remained in the new opera, but the old one definitely had an automatic page refresh that did not ask for any confirmation. I myself used it for the same purpose...
If you really want to make your own program - try Awesomium.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question