Hide all windows for the process (e.g. Internet Explorer)

I am using WatiN actions for a script in Internet Explorer that run against the background of the user machine. (I know ... hacks). I can make Internet Explorer window not visible through WatiN. However, during my script, several HTML dialogs open. I can hide them using the P-Invoke ShowWindow in User32.dll, but they still appear for a second or so, until I find HWnd for the dialog. My question is:

Is there any way to stop the process of displaying any windows?

thank

+3
source share
2 answers

, AutoCloseDialogs IE WatiN?

, . , WatiN, CreateProcessAsUser Windows API , , .. . CreateProcessAsUser .net.

0
ie.ShowWindow(NativeMethods.WindowShowStyle.Hide);
0

Source: https://habr.com/ru/post/1725970/


All Articles