Sign in to follow this  
Followers 0
aGorilla

Structs? Hashes? Variable variable names?

4 posts in this topic

I'm starting to pile up on the globals, and that just feels wrong. Is there any way to emulate structs or hashes, or can you use variables in a variable name somehow?

Thanks in advance.

Share this post


Link to post
Share on other sites



I'm starting to pile up on the globals, and that just feels wrong. Is there any way to emulate structs or hashes, or can you use variables in a variable name somehow?

Thanks in advance.

Passing parameters and using Local vars to substitute rather than one long script can ease some of the tension.

There are Enum options but for the most part to make a struct Var, you'd be making an Array in AutoIt. Just keep them classed with 1 2 or how ever many dimensions you are using and make nice comments to keep track of them.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

I'm starting to pile up on the globals, and that just feels wrong. Is there any way to emulate structs or hashes, or can you use variables in a variable name somehow?

Thanks in advance.

Theres always the Scripting Dictionary:

http://www.autoitscript.com/forum/index.ph...ing++dictionary

Share this post


Link to post
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
Sign in to follow this  
Followers 0