| View previous topic :: View next topic |
| Author |
Message |
Nemroth
Joined: 07 Sep 2004 Posts: 262 Location: France
|
Posted: Mon Apr 11, 2005 7:22 pm Post subject: |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Mon Apr 11, 2005 11:02 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Mon Apr 11, 2005 11:36 pm Post subject: |
|
|
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 |
|
 |
Nemroth
Joined: 07 Sep 2004 Posts: 262 Location: France
|
Posted: Tue Apr 12, 2005 4:59 am Post subject: |
|
|
| 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 |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Tue Apr 12, 2005 4:28 pm Post subject: |
|
|
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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5007 Location: imaginationland
|
Posted: Tue Apr 12, 2005 5:01 pm Post subject: |
|
|
| 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 |
|
 |
niwi
Joined: 27 Feb 2005 Posts: 128 Location: Heidelberg, Germany
|
Posted: Tue Apr 12, 2005 5:41 pm Post subject: |
|
|
Hi,
| toralf wrote: | | I'm tying to download the v1.0.31.01. |
I've got .01, too.
NiWi. |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Tue Apr 12, 2005 7:06 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Thu Apr 14, 2005 1:20 am Post subject: |
|
|
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 |
|
 |
Jerry
Joined: 24 Jun 2004 Posts: 39
|
Posted: Thu Apr 14, 2005 7:58 pm Post subject: AutoHotKey help |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Thu Apr 14, 2005 9:31 pm Post subject: |
|
|
| Thanks for pointing out that oversight. I would never have noticed otherwise. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Thu Apr 14, 2005 10:28 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Fri Apr 15, 2005 4:58 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Apr 19, 2005 2:22 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Wed Apr 27, 2005 7:55 pm Post subject: |
|
|
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 |
|
 |
|