AutoHotkey Community

It is currently May 27th, 2012, 12:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 139 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10
Author Message
 Post subject:
PostPosted: December 10th, 2011, 12:12 pm 
Offline
User avatar

Joined: May 24th, 2009, 5:35 am
Posts: 2099
Location: Iowa, USA
tidbit wrote:
To be fair and cover the _Basic side of things, create a list and put it in a var. thenuse stringsplit (or a loop, but not always needed). you just made an easy pseudo-array list. much easier ^_^ and probably faster to create.

To be fair, lets also compare _Basic to v2 for this, since neither have a primary focus of maintaining backwards compatibility.

v2 has StrSplit(), which is essentially the same as StringSplit, but returns an object. Also, v2 already operates faster than _Basic.

Now, for a problem I ran into with pseudo-arrays, how do you delete an entire array? I know you can come up with ways to keep track of the dimensions & loop through all the variables, but isn't this much more difficult/confusing than array:="" ?

On a side note - I do agree that it would be nice to see an internal workaround for the token count issue (if you want to call it that) when initializing arrays/objects - but then again, you never had the opportunity to define such a list in _Basic.

_________________
Image
Recommended: AutoHotkey_L
Basic Webpage Controls


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2011, 6:39 pm 
Offline

Joined: February 29th, 2008, 12:11 pm
Posts: 943
Learning one wrote:

- Thank you Learning one for the good tidings for me! But I am still a newbie and don't understand some fundamental things here. Can you, please, answer 3 questions?

1) What does "GDI" stand for?
2) After I click there on the word "Gdip.ahk" in "Download: Gdip.ahk" instead of usual window prompting me to save a file, I am taken to a page with a lot of code in it. Do I need to copy that whole page and then paste it to an .ahk file?
3) Where then should I save that file? Can I just simply save it in the folder where I'll be running my scripts using that library?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2011, 7:49 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5482
Location: the tunnel(?=light)
Benny-D wrote:
1) What does "GDI" stand for?


Graphics Device Interface

Benny-D wrote:
2) After I click there on the word "Gdip.ahk" in "Download: Gdip.ahk" instead of usual window prompting me to save a file, I am taken to a page with a lot of code in it. Do I need to copy that whole page and then paste it to an .ahk file?


Right-click the link and tell it to 'Save Link As...' or run the below code to save it to your desktop:

Code:
UrlDownloadToFile, http://www.autohotkey.net/~tic/Gdip.ahk, %A_Desktop%\Gdip.ahk


Benny-D wrote:
3) Where then should I save that file? Can I just simply save it in the folder where I'll be running my scripts using that library?


The Lib folder in your AutoHotkey directory is a good place, if you don't have a Lib folder create one.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2011, 8:10 pm 
Offline

Joined: February 29th, 2008, 12:11 pm
Posts: 943
Thank you sinkfaze for answering all those questions!!!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 139 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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