AHK-just-me / AHK2_RichEdit

RichEdit control for AHK v2
The Unlicense
13 stars 4 forks source link

How to run the code in AHK2.0 version? #1

Open yzqiang opened 2 weeks ago

yzqiang commented 2 weeks ago

For some reason, I can't upgrade to AHK2.0.2 version. I am using AHK2.0 version to run the RichEdit library. When I run the script, I got something wrong such as below:

This operator's right operand must not be unset.

I can't find which feature or code incompatible with AHK2.0. Could you tell me what are the incompatibilities of AHK2.0.2 please?

OvercastBTC commented 1 week ago

You don't need to be on AHK v2.0.2. That's the version of AHK v2 it was written under. Just update to the latest AHK v2 version available.

Put the following at the top of every script, and issues like this will show themselves; it's very unlikely it's in his code:

#Requires AutoHotkey v2+

I also suggest using VS Code, and ensuring you have thqby's AutoHotkey v2 Langauage Support extension. I would also get GroggyOtter's definition file update, among other extensions.

At the very least, with thqby's addon, the error will be shown. My expectation is it's in your code, not his.

I do have a class version of this I'm pretty much done with.