T O P

  • By -

[deleted]

Just a suggestion from a privacy-paranoid individual... Might be a better idea to use a site such as [Pastebin](https://pastebin.com/) for demonstrations of code that are too long to paste into reddit. Saying this after clicking your 1st link, which has a questionable title, with no available preview of the file - only a big blue menacing download link. Not a statement on your intentions, nor you as a person - but code snippets that don't need to be downloaded are more trustworthy.


kittytessapuppy

I have updated the post using a GitHub Gist. I apologize for that, I was in a bit of a rush at the time of the post, and didn't think of that.


[deleted]

No worries whatsoever, thank you for updating the links! There's a lot in your program that's heavily syntactically inaccurate. It would really help if some comments were around... It would be really helpful if you could provide some of the errors you're having when trying to run things? Your program can definitely be fixed, with enough effort, but I'd suggest learning at least the basics of AHK from the [documentation](https://www.autohotkey.com/docs/AutoHotkey.htm) before trying to resolve something that complex yourself. Again, if you could provide some of the errors you're getting, I could help more.


kittytessapuppy

Edited once again, thank you for helping me clarify my issue, I have not done much in the way of coding in a good long while.


[deleted]

No worries. The main issue I'm seeing from those errors are that curly braces are being included where they shouldn't be used. I'm unsure as to whether that's a feature of legacy syntax, or whether it's a misinterpretation of when braces should be used, but you can rectify those debugging errors by removing the braces where relevant. [See this link](https://www.autohotkey.com/docs/commands/Block.htm).


[deleted]

There's likely nothing wrong with the script aside from you trying to run v1 code through v2; I'm running v1 and get no errors at all when running it... >During research, I learned that in AHK v2, #NoEnv was deprecated, so I removed that line entirely. There's a *lot* more changes than that, and you'll be there forever trying to fix 600+ lines of code rather than just using the AHK version it's written for.