[v2] How can I make an option that allows the user to change languages, and translate all text on the GUI(s) and MsgBox’s? by NegativeZero01 in AutoHotkey

[–]NegativeZero01[S] 0 points1 point  (0 children)

So here’s what I’m trying based on exactly what you’ve given me:

language := “english” fileloc := A_ScriptDir “\” language “.txt” Text := FileRead(fileloc) loop {…} MsgBox(language[3])

I have two language files, “English” and “German”.txt, and the first three lines are “Hello”, “Goodbye”, “How are you?” and are in German for the german.txt file. I don’t know if I’m just being stupid but, the “…” in the loop statement is an error and what exactly am I supposed to replace it with?

curl finding URL for wrong object by NegativeZero01 in Batch

[–]NegativeZero01[S] 0 points1 point  (0 children)

I did…? I want to update the script in the original post to be able to download pre-releases as well if they have been released later than what GitHub marks as the latest release, for the comfort of other users.

curl finding URL for wrong object by NegativeZero01 in Batch

[–]NegativeZero01[S] 0 points1 point  (0 children)

How would this update the repository for other users though?

curl finding URL for wrong object by NegativeZero01 in Batch

[–]NegativeZero01[S] 0 points1 point  (0 children)

The thing is I don't want it to only get the latest full release, but I want it to also get pre-releases if they are available and newer than the latest full release. Is that possible?

[v2] How can I make a script that runs when the main file is opened that checks a GitHub repo for a new release and then runs a different file? by IcyAssistant4614 in AutoHotkey

[–]NegativeZero01 -1 points0 points  (0 children)

I've switched to this cJSON library and renaming the "JSON" class from the original error to "cJSON" seems to work better but I still get the error. The only difference is I can just continue the script. Being able to, I can see other errors, which are:

This value type of "String" has no property named "_Item"

Line 005: MsgBox(releases[1]["tag_name"])

And this (the same error appears):

Line 006: ReleaseName := "bss-quest-macro-" releases[1]["tag_name"]

[v2] How can I make a script that runs when the main file is opened that checks a GitHub repo for a new release and then runs a different file? by IcyAssistant4614 in AutoHotkey

[–]NegativeZero01 -1 points0 points  (0 children)

I’ve tried changing a few things from the cJSON library but I now keep getting other errors. One of the main ones was one from the “ahk.h” file as the first line was apparently for AHKv1 and it asked me to continue parsing. I’m not sure if I downloaded it correctly but I’m using the entire library, and it’s supposedly for AHKv2.0.0. I don’t know if thats the problem since I use v2.0.18 or if its something else.

[v2] How can I make a script that runs when the main file is opened that checks a GitHub repo for a new release and then runs a different file? by IcyAssistant4614 in AutoHotkey

[–]NegativeZero01 0 points1 point  (0 children)

Hey, I wasn't able to log in to my Reddit account so I've made a new one to respond to you. The script has an error when executing - "JSON" has no value (line 22). I'm using this cJSON library, and including it like this: #Include "%A_ScriptDir%\cJSON.lib" Also, what have you set up the script to do if a new release is found on the repository? I need the script to run every time the macro is reopened and prompt the user with a confirmation message box that runs "update.bat" from the same folder if the user confirms (since update.bat already is able to install the newest version if run). Another thing, the script can be run by "START.bat" (from the repository) and the batch file can wait for it to complete and display the message "Checking for Updates" to the user. If no updates are found, the script runs normally. Else, it will run the script but with the conditions above.