AutoHotkey Community

It is currently May 27th, 2012, 1:34 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: June 14th, 2011, 3:58 am 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
As I've said before, you're better off throwing the whole thing into an object.
Code:
args := Object()
Loop %0%
 args[A_Index] := %A_Index%
is the minimal structure which could be expanded to contain the whole command line, etc.

This way, you never have to use traditional If's, Ever. IMO, until you're proficient, use Expression 100% of the time. If I'd done this, my first Ask for Help topic wouldn't be around ;)

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 14th, 2011, 5:29 am 
Offline

Joined: January 21st, 2009, 5:49 pm
Posts: 176
nimda wrote:
As I've said before, you're better off throwing the whole thing into an object.


Thanks for your reply. I like using associative arrays. Looks like it's time to delve past the plain vanilla. The ahk mouse handling is too good for me to abandon. :)

_________________
"I don't want to belong to any club that would have me as a member."
- Groucho Marx


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, chaosad and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group