While debugging a massive script I made a while back to work on the latest version of AHKv2 I've gotten stuck on this issue. I seem to be triggering some error possibly in the language or maybe I'm missing something obvious? I first got this error and as you can see in the screenshot it was pointing to "return" and I wasn't sure how return could accept params but then I got the same error here and cut out all the code I could and the error persists.
I'm testing/rebuilding this script in AHK 2.0-a106-4a6b3ff1. There might be an update for this already if so my apologies. I'm looking for someone more knowledgeable in AHK to take a quick look to see if it's something that could be fixed or if I simply need to rewrite the module. Thanks for your time in advance community.
Code: Select all
MasterSettings(){
SettingsGUIID := GuiCreate(,"Settings")
SettingsGUIID.setfont("s12", "open sans")
ltext:=SettingsGUIID.add("text","xm w250","Settings").setfont("s14 bold", "Helvetica")
;general settings
SettingsTab := SettingsGUIID.add("tab3",,"General||ActionWheelTool(BETA)|Addional Module Installer|Setup/Help|About")
SettingsTab.UseTab()
SettingsGUIID.add("button",,"Cancel").OnEvent("Click",() => GUIClose())
SettingsGUIID.OnEvent("close",() => GUIClose(SettingsGUIID))
SettingsGUIID.show()
Return
}
GUIClose(args*){
args[1].Destroy
if(A_IsPaused)
Pause "off"
Suspend "off"
Return
}
MsgBox "running: " A_AhkVersion "`nchipy used: 2.0-a106-4a6b3ff1"
mastersettings()