Call to nonexistent function, old version of ahk. How to make the script run on older versions on autohotkey?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
JensHaglof
Posts: 81
Joined: 04 Jul 2017, 11:41

Call to nonexistent function, old version of ahk. How to make the script run on older versions on autohotkey?

Post by JensHaglof » 01 Dec 2022, 03:31

Code: Select all

FileRead, CompList, G:\Data\CompList.ants
CompListRows:=StrSplit(CompList, "`r`n")
Loop {
	CompListRow:=StrSplit(CompListRows[A_Index], "`t")
	If (CompListRow[2] = A_ComputerName) {
		Packbord:=CompListRow[1]
		PackbordsTyp:=CompListRow[3]
		Break
	}
}
On my laptop, this works fine. I have the latest version of AHK.

I'm trying to run it on a computer with AHK 1.0.48.05.
It throws an error on line 2 "Call to nonexistent function".
How can I change the script to work on this computer? I don't have access to upgrade the AHK version.
I've tried StringSplit but got the same error.
/Jens

Rohwedder
Posts: 7558
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Call to nonexistent function, old version of ahk. How to make the script run on older versions on autohotkey?

Post by Rohwedder » 01 Dec 2022, 03:50

Hallo,
compile the script with AHK_L and then run the generated exe.

JensHaglof
Posts: 81
Joined: 04 Jul 2017, 11:41

Re: Call to nonexistent function, old version of ahk. How to make the script run on older versions on autohotkey?

Post by JensHaglof » 01 Dec 2022, 04:39

Rohwedder wrote:
01 Dec 2022, 03:50
Hallo,
compile the script with AHK_L and then run the generated exe.
Thanks, that worked! :)

Post Reply

Return to “Ask for Help (v1)”