-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with longpress.ahk #254
Comments
I can't find a fix with our current Label -> Func conversion, but using this will fix it #236 (comment)
StringMid conversion seems to be incorrect when L param is present, ill work on that now |
Do you mean it this way? if (IsLabel(stored_value)) {
Goto("stored_value")
} else { Furthermore, the script converted with the latest commit has this error: Error: Parameter #5 of InStr requires a Number, but received an empty string. 044: Continue |
Not really, GoSub means it runs to the specified label, then goes back to where the GoSub is (think subroutines) The problem with this code is currently the label in the GoSub gets converted to a function (which is better practise than labels, but doesn't work with falling in). We aren't exactly sure how to handle this, whether to push practicality or functionality (despite not using functions haha). You can track this at #236
StringMid is not very easy to convert :) I look at it soon |
Just started looking into this, but there might be a reason why it doesn't work ; else then a variable was passed (containing the "L#|R#" string),
; or literal text converted to expr, something like: "L" . A_Index
; output something anyway even though it won't work, so that they can see something to fix |
V1:
V2 (Converted):
V2 (Errors):
Converting the script produces these two errors.
To test the script use:
LongPress.Settings.ini.txt
The text was updated successfully, but these errors were encountered: