#NoTrayIcon
AutoItSetOption("WinTitleMatchMode", 4)
hotKeySet("^{F1}","toggle")
hotKeySet("!{F1}","terminate")
$isEnabled = 1
toggle()
while 1
if $isEnabled then
If ProcessExists("iexplore.exe") then ProcessClose("iexplore.exe")
$handle = WinGetHandle("classname=Internet Explorer_TridentDlgFrame", "")
if $handle then winClose($handle)
endIf
sleep(100)
Wend
func toggle()
$isEnabled = NOT $isEnabled
if $isEnabled then
msgBox(4096,"","No Longer blocking IE windows from spawning",0)
else
msgBox(4096,"","Blocking IE windows from spawning",0)
endIf
endFunc
func terminate()
msgBox(4096,"","Terminating IE blocker",0)
exit
endFunc