I have a fairly complex script that was working fine with version 1.124.x. I updated AHK to 1.129 and the script will not run anymore.
First the script was throwing "Call to nonexistent function" errors. It seems the newer version does some extra function and label checking. Functions must be defined before they are called in a subroutine, event if they are not needed yet. So I moved all my functions to ensure they would be defined first.
Now the script does not throw any errors, it simply quits immediately after starting. I've narrowed the issue down as much as I can... it seems to have something to do with hotkey definitions in the wrong place.
Has anyone else found issues like this?
Thanks.
Script stopped working after updating AutoHotkey
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: Script stopped working after updating AutoHotkey
Functions do not need to be defined inside the script. They can be included or auto-included from one of the library folders. That hasn't changed. However, if you look at the change-log, some of the built-in functions have been changed/added, such as min().