When a website is taking a long time to load I would like to be able to close the tab it is in without waiting for it to finish loading.
I have been testing this code with no luck.
#include <IE.au3>
$oIE = _IECreate("www.autoitscript.com")
For $i = 1 To 5 Step 1
$oIE.Navigate2("www.msn.com", 2048)
Next
;try to close all tabs but the first tab
$i = 1
While 1
$i = $i + 1
$oIE2 = _IEAttach("", "instance", $i)
If @error = $_IEStatus_NoMatch Then ExitLoop
_IEQuit($oIE2)
WEnd