AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: April 8th, 2005, 9:20 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Although this release has been extensively tested, quite a few low-level changes were made. It is recommended that mission-critical scripts be re-tested -- or that you wait two weeks for any bugs to get fixed -- prior to adopting this version.

Here are the changes for v1.0.31:

Fixed the inability of a timer to reset itself. For example, if "SetTimer, MyTimer" is done within the MyTimer subroutine, the timer will begin waiting for an entirely new interval to expire before running again.

Fixed syntax checker reporting parentheses inside of quoted strings as unbalanced.

Fixed GuiControl to be able to change the ReadOnly attribute of an Edit control. [thanks Bahri]

Changed expressions so that references to invalid dynamic variables such as Array%VarContainingSpaces% produces a runtime warning.

Lowered the precedence of string concatenation in expressions. Although this is unlikely to affect any scripts, if you have any doubt please consult the operator precedence table.

Improved string concatenation in expressions to work on anything (e.g. arrays and sub-expressions). In addition, a period can be used as a concatenation operator to improve readability.

Dynamic variables such as Array%i% are up to 1000 times faster. A script may now have several million variables without a large slow-down. [thanks Lazlo]

Improved the performance of GuiControl and GuiControlGet when used on a window that has hundreds of controls.

Expressions that use a lot of ANDs and ORs are faster due to short-circuit boolean evaluation.

Improved memory conservation in scripts that use thousands of variables by adding two new variable capacities: 1 and 6. Formerly, the smallest capacity other than zero was 63.

Added built-in variables A_LineNumber and A_LineFile, which contain the currently executing line number and the file name to which it belongs. [thanks toralf]

Added directive #ClipboardTimeout, which changes how long the script persists in trying to open the clipboard (default 1000 ms). [thanks Tekl & Jason Payam Ahdoot]

Added the ability to pass parameters and receive return values from functions. Functions also support local variables. In addition, ListVars can show the contents of local variables to help debugging. See functions for details.

http://www.autohotkey.com/download/


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2005, 9:44 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
YES!!!!!!!

('nuff said)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 9th, 2005, 7:46 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
WooHoo!! Thanks Chris :) .


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 9th, 2005, 12:30 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
That function parameter feature must've taken lot of time... no wonder it took you so long to release this one. Thanx Chris, and congratulations on another fine release!

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 9th, 2005, 12:54 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Yes, a lot of code was added this time. The disadvantage of this is that compiled scripts will all probably be about 6 KB larger than they were before.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 9th, 2005, 1:10 pm 
Offline

Joined: April 28th, 2004, 1:12 pm
Posts: 349
That's brilliant. Thanks for all the work you've put into this version Chris. I've got a few scripts I'd like to re-write with functions to make the code neater and easier to update.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2005, 3:44 am 
Offline

Joined: October 19th, 2004, 12:11 pm
Posts: 102
I guess now we could do with a 'Functions repository' here on the forum to share functions. Chances are someone's already done a similar function to the one you need, so why re-invent the wheel.

I'll get the ball rolling by re-writing my 'Convert YYYYMMDDHHMMSS to Unix Epoch time' code as a function.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2005, 4:13 am 
Offline

Joined: April 1st, 2004, 12:00 am
Posts: 87
Location: Philippines
Has probably been said many times before, but: Woohooo!!!! and Yeeaaaaaah!!!

Thanks Chris, must'ave been very hard adding new features and yet, still keep backwards-compatibility.

It'll probably be much easier to integrate scripts from now on, I mean, no more naming conflicts. Much.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2005, 12:12 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
Wahooou !! The features are great !!! It's a major release.
Congratulations, and thanks a lot !!!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2005, 3:21 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
CarlosTheTackle wrote:
I guess now we could do with a 'Functions repository' here on the forum to share functions.
Good idea. I'll rename the Scripts forum to indicate that functions should also be posted there.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2005, 7:21 pm 
Offline

Joined: February 27th, 2005, 5:51 pm
Posts: 139
Location: Heidelberg, Germany
Hi Chris,

the arrays are processed really faster than in the earlier version. Thanks.

But the function-feature: now I have to redesign my big script on which I'm working... ;-)

Chris, you are the man... :P

NiWi.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2005, 12:56 am 
Offline

Joined: August 26th, 2004, 3:11 pm
Posts: 80
Location: Chelsea - MA, USA
Functions make scripting a lot easier! Thanks!

I'm going to update some of my scripts this week... :D

_________________
Working now on:
NumpadMouse v2 (Draw)
top-recode project (private server script) (pkodev)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2005, 2:23 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Awesome!

What can we expect to get more of in built-in functions in future next releases? -It's really useful and might change how everybody scripts (v2 :P).

_________________
GitHubScriptsIronAHK Contact by email not private message.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2005, 4:14 am 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
Titan wrote:
Awesome!

What can we expect to get more of in built-in functions in future next releases? -It's really useful and might change how everybody scripts (v2 :P).


I think to have an AutoHotkey 2.0 would mean a revolutionary change that throws off the burden of backwards compatibilty. One thing I've always thought would be great is different "wrappers," different syntax sets that could suit different needs. Of course, that would take forever, and there might be more unforeseen improvements. We'll just have to wait and see.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2005, 1:16 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Titan wrote:
What can we expect to get more of in built-in functions in future next releases?
Certainly. If there's a way to do it without bloating the code, there should eventually be a function equivalent for every command that accepts an output variable.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot 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