Code: Select all
T := AhkThread("
(
#Persistent
#NoTrayIcon
IE := ComObjCreate("InternetExplorer.Application")
IE.Visible := true
IE.Navigate("www.google.com")
OnExit(() => IE.Quit())
)")
Esc::
T.AhkTerminate()
ExitApp()
Return
the error
this guy says u can only postmessage to it, which does work, but requires gymnastics:
Code: Select all
T := AhkThread("
(
#Persistent
#NoTrayIcon
IE := ComObjCreate("InternetExplorer.Application")
IE.Visible := true
IE.Navigate("www.google.com")
terminate() {
global IE
IE.Quit()
ExitApp
}
)")
Esc::
terminate(T)
ExitApp()
Return
terminate(ByRef T) {
T.AhkPostFunction("terminate")
T := ""
}