I've been trying to figure this out for a few days now and I cannot find a solution. The problem I'm having, is that COM_Term() does not close the Internet Explorer application I have created with COM_Init(). I just redownloaded the COM library and example code to make sure that my code is correct. Here is the code I'm using (taken from the most current examples in the forum):
Code:
#NoEnv
#Include COM.ahk
SetWorkingDir %A_ScriptDir%
;=============================
COM_Init()
pwb := COM_CreateObject( "InternetExplorer.Application" )
COM_Invoke( pwb, "Visible", True )
COM_Invoke( pwb, "Navigate", "www.AutoHotkey.com" )
Sleep, 10000
COM_Release( pwb )
COM_Term()
ExitApp
The Internet Explorer application opens and invoke seems to work fine, but for some reason, COM_Term() does not close the Internet Explorer Window. Anyone have an idea what would cause this? I tried the search, but I cannot find any related topics. My Autohotkey version is 1.0.48.05, I'm using Internet Explorer 9, and I'm on Windows Vista 64bit.