Same problem as yesterday

I think I have a valid script/command/file (or whatever you call it) found on the AHK website (this is in the akh file)
MsgBox % StrUnmark("ÁáÀàÂâǍǎĂăÃãẢảẠạÄäÅåĀāĄąẤấẦầẪẫẨẩẬậẮắẰằẴẵẲẳẶặǺǻĆćĈĉČčĊċÇçĎďĐđÐÉéÈèÊêĚěĔĕẼẽẺẻĖėËëĒēĘęẾếỀềỄễỂểẸẹỆệĞğĜĝĠġĢģĤĥĦħÍíÌìĬĭÎîǏǐÏïĨĩĮįĪīỈỉỊịĴĵĶķĹ弾ĻļŁłĿŀŃńŇňÑñŅņÓóÒòŎŏÔôỐốỒồỖỗỔổǑǒÖöŐőÕõØøǾǿŌōỎỏƠơỚớỜờỠỡỞởỢợỌọỘộṔṕṖṗŔŕŘřŖŗŚśŜŝŠšŞşŤťŢţŦŧÚúÙùŬŭÛûǓǔŮůÜüǗǘǛǜǙǚǕǖŰűŨũŲųŪūỦủƯưỨứỪừỮữỬửỰựỤụẂẃẀẁŴŵẄẅÝýỲỳŶŷŸÿỸỹỶỷỴỵŹźŽžŻż")
; Removes marks from letters. Requires Windows Vista or later.
StrUnmark(string) {
chars := {"a":"ⱥ","b":"ƀ","c":"ȼ","d":"đ","e":"ɇ","f":"ꞙ","g":"ǥ","h":"ħ","i":"ɨ"
,"j":"[ɉʄɟ]","k":"[ꝅꝁꞣꝃ]","l":"[łꝉŀ]","n":"ꞥ","o":"[ᴓꬿǿꝋꬾø]","p":"[ꝑᵽ]"
,"q":"[ꝗꝙ]","r":"[ɍꞧ]","s":"ꞩ","t":"[ŧⱦ]","v":"ꝟ","y":"ɏ","z":"ƶ"}
string := RegExReplace(string,"Ð","D")
For repl, find in chars
{
StringUpper, urepl, repl
StringUpper, ufind, find
string := RegExReplace(string,find,repl)
, string := RegExReplace(string,ufind,urepl)
}
len := DllCall("Normaliz.dll\NormalizeString", "int", 2
, "wstr", string, "int", StrLen(string)
, "ptr", 0, "int", 0) ; Get *estimated* required buffer size.
Loop {
VarSetCapacity(buf, len * 2)
len := DllCall("Normaliz.dll\NormalizeString", "int", 2
, "wstr", string, "int", StrLen(string)
, "ptr", &buf, "int", len)
if len >= 0
break
if (A_LastError != 122) ; ERROR_INSUFFICIENT_BUFFER
return
len *= -1 ; This is the new estimate.
}
; Remove combining marks and return result.
return RegExReplace(StrGet(&buf, len, "UTF-16"), "\pM")
}
but once again, I can't seem to install it
Either I get an error when trying to install it or there is no error but then it does not run when I use my shortcut
Currently, i have the ahk file in
%dir%\REMOVE ACCENTS FROM FILE NAMES.ahk
I've tried ticking hooks and even wildcards as I see the file makes reference to regex
Can anyone help please?