0
rLensDesign := "FT"
lLensDesign := "SV"

for tempLensDesign in Object(rLensDesign, lLensDesign) {
...
}

I am getting an error in for loop saying "Unrecognized action". I know I did not do

Object(rLensDesign, lLensDesign)

right but documentation is confusing and I cant figure out how to fix it. My objective is to have values of rLensDesign in tempLensDesign in first iteration of the loop and so on.

3
  • 1
    The code works here. You're probably using an old version of AutoHotkey. Download one from ahkscript.org Commented Sep 8, 2015 at 14:33
  • Thanks that was the issue, if u add as answer, I will select. Commented Sep 8, 2015 at 14:42
  • Strictly speaking that's not a code-related problem so I voted to close the question. Commented Sep 8, 2015 at 14:47

1 Answer 1

1

Replace keyword "Object" with "Array".

Sign up to request clarification or add additional context in comments.

1 Comment

This solved the issue. Remember 2 more things: (1) Update AHK to latest version (2) Change to for index, tempLensDesign .... and then ignore index if you dont need it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.