aGorilla Posted April 12, 2008 Share Posted April 12, 2008 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. Search AutoItScript.com via Google Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 13, 2008 Moderators Share Posted April 13, 2008 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. Link to comment Share on other sites More sharing options...
weaponx Posted April 13, 2008 Share Posted April 13, 2008 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 Link to comment Share on other sites More sharing options...
aGorilla Posted April 13, 2008 Author Share Posted April 13, 2008 Excellent! If there wasn't, I was afraid that I'd make one. Search AutoItScript.com via Google Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now