Jump to content

Use of variables inside functions


Recommended Posts

Hello again!

A few more questions -

What's the best way to transform a text file of data into variables into AutoIT variables. Is it "FileReadToArray"? any other options?

one more -

ControlClick ("FaceGen Modeller","","[CLASS:Edit;INSTANCE:5]","left",2,25,10)

Is it possible to use a variable inside this call (after "Instance")?

If yes - how?

Thanks again!

Link to comment
Share on other sites

Hello again!

A few more questions -

What's the best way to transform a text file of data into variables into AutoIT variables. Is it "FileReadToArray"? any other options?

Arrays are good, and should be your first, most straight-forward choice. Another possibility, when associated string pairs are to be worked with, it to take the array and assemble a scripting.dictionary. Here's an example of doing that with the contents of an INI file.

one more -

ControlClick ("FaceGen Modeller","","[CLASS:Edit;INSTANCE:5]","left",2,25,10)

Is it possible to use a variable inside this call (after "Instance")?

If yes - how?

Yes:

$i = 5
ControlClick ("FaceGen Modeller","","[CLASS:Edit;INSTANCE:" & $i & "]","left",2,25,10)

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...