Title: How to close all the open IE windows
Question: How can I close all the open internet explorer windows currently open?
Answer:
Use this to close all open IE windows.
Var
IExplorer : Thandle;
begin
IExplorer := FindWindow(''IEFrame'',nil);
If IExplorer 0 Then
SendMessage(IExplorer, WM_SYSCOMMAND,SC_CLOSE,0);
note instead of SC_CLOSE
SC_MINIMIZE can be used to minimize all ie windows
SC_MAXIMIZE can be used to maximize all ie windows
This could be used on a button click or in a timer for example.
Hope u enjoyed the article
James Sturrock