COM Interface is now implemented in AutoHotkey.exe, the module name is AutoHotkey2.Application for x64 and Win32 version.
Before COM Interface can be used, AutoHotkey needs to be registered with "PathToAutoHotkey\AutoHotkey.exe /RegServer". To unregister use "PathToAutoHotkey\AutoHotkey.exe /UnRegServer".
Experimental! Since AutoHotkey v2 does not support auto include from standard libraries, this directive enables that feature again.
When using #UseStdLib, when AutoHotkey finds a variable that has not been assigned a value, it will automatically try to load a library (incl. resource library and winapi) function. The order is UserLib -> Resource LIB -> WinApi.
WinAPI Functions will be loadad also without #UseStdLib!
Dynamic Library
You can include/create code using a library function, it will be executed in new theread and result will be included in the running script.