AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

v1.0.31 released: Functions (parameters and return values)
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Nemroth



Joined: 07 Sep 2004
Posts: 262
Location: France

PostPosted: Mon Apr 11, 2005 7:22 pm    Post subject: Reply with quote

I know it's in the planned features, but I think that with the functions and local/global variables (witch are a major ehancement), a good thing would be the Select ... Case structure to make AHK a near structured scripting language.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon Apr 11, 2005 11:02 pm    Post subject: Reply with quote

You probably know about "else if" already. In addition, the use of "in" can help simplify a lot of otherwise complex case ladders:

if color in purple,blue
....
else if color in black,gray,silver
...
else if color in red,yellow,orange
...
else ; This corresponds to the "default" or "otherwise" case.
...

I look at the above and see that although a case/switch construct would make it look a little neater, the benefit seems fairly low compared to some of the other things planned on the to-do list.

I do want to do it someday, it just seems like other things, such as more GUI control types, the ability to call DLLs, etc. seem more important. Contrary opinions are welcome.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon Apr 11, 2005 11:36 pm    Post subject: Reply with quote

Here are the changes for v1.0.31.01:

Fixed sub-expressions in function parameters yielding incorrect result; e.g. Add(2*3,3). [thanks Lazlo]

Fixed open-parenthesis being seen as a syntax error if used after a command that lacks a first comma; e.g. MsgBox (). [thanks Laszlo]

http://www.autohotkey.com/download/
Back to top
View user's profile Send private message Send e-mail
Nemroth



Joined: 07 Sep 2004
Posts: 262
Location: France

PostPosted: Tue Apr 12, 2005 4:59 am    Post subject: Reply with quote

Chris wrote:
You probably know about "else if" already. In addition, the use of "in" can help simplify a lot of otherwise complex case ladders


That's true... I must say I can't do anything else than to be agree with that, about witch I didn't think about !!! But I think the the Select ... case is more concise and more readable.

Chris wrote:
if color in purple,blue
....
else if color in black,gray,silver
...
else if color in red,yellow,orange
...
else ; This corresponds to the "default" or "otherwise" case.
...

becomes

Code:
Select color
case purple,blue
....
case black,gray,silver
...
case red,yellow,orange
...
default
...


Thanks again for this major release.
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Tue Apr 12, 2005 4:28 pm    Post subject: Reply with quote

I'm tying to download the v1.0.31.01. But when I install it, it says it is the v1.0.31.00 installer.
- Is this a problem of my internet connection cache?
- is it just a wrong number in the installer?
- is the download site not updated?

Does anyone have the same problem?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5007
Location: imaginationland

PostPosted: Tue Apr 12, 2005 5:01 pm    Post subject: Reply with quote

toralf wrote:
I'm tying to download the v1.0.31.01. But when I install it, it says it is the v1.0.31.00 installer.

I got the right installer, v1.0.31.01, so it may be your cashe.
> CCleaner: useful prog.
_________________

RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
niwi



Joined: 27 Feb 2005
Posts: 128
Location: Heidelberg, Germany

PostPosted: Tue Apr 12, 2005 5:41 pm    Post subject: Reply with quote

Hi,

toralf wrote:
I'm tying to download the v1.0.31.01.

I've got .01, too.

NiWi.
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Tue Apr 12, 2005 7:06 pm    Post subject: Reply with quote

It must be due to the proxies we use at work. At home everything is fine. Thanks for the feedback.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Thu Apr 14, 2005 1:20 am    Post subject: Reply with quote

Here are the changes for v1.0.31.02:

Fixed the Clipboard variable to avoid producing an error when a set of zero files was copied onto the clipboard. [thanks Serenity & Tekl]

Fixed GuiDropFiles and "Gui +/-Options" so that they don't remove window transparency and other effects. [thanks toralf]
Back to top
View user's profile Send private message Send e-mail
Jerry



Joined: 24 Jun 2004
Posts: 39

PostPosted: Thu Apr 14, 2005 7:58 pm    Post subject: AutoHotKey help Reply with quote

Chris,
Just a little thing.
I just downloaded 1.0.31.02 and noticed that the help "recent changes" was not changed to reflect the changes.


Jerry
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Thu Apr 14, 2005 9:31 pm    Post subject: Reply with quote

Thanks for pointing out that oversight. I would never have noticed otherwise.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Thu Apr 14, 2005 10:28 pm    Post subject: Reply with quote

Here are the changes for v1.0.31.03:

Fixed ImageSearch so that partial matches at the edges of the search region are not considered complete matches. [thanks Invalid User]

Fixed the inability of labels to contain parentheses, a bug introduced in v1.0.31. [thanks Jon]

http://www.autohotkey.com/download/
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Fri Apr 15, 2005 4:58 pm    Post subject: Reply with quote

v1.0.31.04 contains only a single change:

Fixed various ways in which lines were being falsely detected as function calls. [thanks Payam & Jon]

http://www.autohotkey.com/download/
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Tue Apr 19, 2005 2:22 pm    Post subject: Reply with quote

Here are the changes for v1.0.31.05:

Fixed A_Index, A_LoopFileName, and similar variables when used in more than one parameter of a command that calls functions. In addition, a function may now access the caller's contents of these variables. [thanks corrupt]

Fixed inaccurate line numbers of function calls. This affects A_LineNumber, ListLines, and error dialogs. [thanks Lazlo]

http://www.autohotkey.com/download/
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Wed Apr 27, 2005 7:55 pm    Post subject: Reply with quote

v1.0.31.06 contains only a single change:

ImageSearch is now much more useful: 1) Icons are supported (even ones containing transparent sections); 2) PNG, TIF, ICO, and other image formats are supported; 3) Approximate images may be found by allowing the image's colors to vary by a specified amount; 4) Matching is a little more lenient because the mystery-byte of each pixel color is ignored. [thanks Aurelian Maga]

http://www.autohotkey.com/download/
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group