I've already ported my AHK script to v2, and it was mostly painless. It helps to use VS Code with the extension so that it can highlight what syntax would fail (mostly). Most of it was trivial like adding surrounding quote around `Send` function's param, as well as prepending `#HotIf` in front of WinActive(). As an added benefit, my dual function key is more reliable, ie sending capslock/control as escape or ctrl.
(See last entry in https://www.autohotkey.com/boards/viewtopic.php?t=92738)