Code updated for compatibility with recent AutoHotkey updates.