Script stopped working after updating AutoHotkey

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Jimmy219

Script stopped working after updating AutoHotkey

08 Aug 2018, 11:58

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.
User avatar
Masonjar13
Posts: 1555
Joined: 20 Jul 2014, 10:16
Location: Не Россия
Contact:

Re: Script stopped working after updating AutoHotkey

08 Aug 2018, 13:52

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().
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Google [Bot], OrangeCat and 179 guests