update code for autohotkey