AutoHotkey.dll multi-threading
- AutoHotkey.dll supports now multi-threading like AutoHotkey.exe does.
- So you can now use NewThread everywhere to create a thread. AhkThread etc. have been removed.
AutoHotkey COM Interface- 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".
ObjDump- ObjDump will not compress the dumped object by default.
- ObjDump supports now ComValue.
JSON built-in Class
- JSON is a built-in Class that can stringify Objects and parse JSON string to create a Map or Array. (thanks thqby)
ComValue VT_NULL / VT_EMPTY / VT_BOOL
- For JSON support, these are considered true or false when used in if or ternary expression (in original AutoHotkey all are considered true).
- VT_BOOL: ComValue(0xB,-1) = true, ComValue(0xB,0) = false, VT_EMPTY: ComValue(0x0,0) = false, VT_NULL: ComValue(0x1,0) = false
7-zip Module
- AutoHotkey_H now includes 7-zip.dll (version 21.07) in resources.
- See SevenZip for how to use.
Swap
GetProcessParameter- GetProcessParameter retrieve command line or working directory of a process.
#TargetWindowError /
#TargetControlError- Don't throw error when target window or control is not found.
#UseStdLib- 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.
- E.g.: #include <urldownloadtovar:http://www.website.com/script.ahk>