| View previous topic :: View next topic |
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Sun Nov 05, 2006 2:51 pm Post subject: v1.0.45 released: Regular Expressions (RegEx) |
|
|
NOTE: Although this release has been extensively tested and is not expected to break any existing scripts, several low-level performance enhancements were made. If you have any mission-critical scripts, it is recommended that you retest them and/or wait a few weeks for any bugs to get fixed.
Here are the changes for v1.0.45:
Added support for regular expressions via RegExMatch(), RegExReplace(), and SetTitleMatchMode RegEx. [thanks Philip Hazel & PhiLho]
Improved performance and memory utilization of StringReplace.
Improved performance of the := operator for expressions and functions involving long strings.
Improved ControlClick with a new option "NA" that avoids activating the target window (this mode also improves reliability in some cases). In addition, it's been documented that SetControlDelay -1 can improve the reliability of ControlClick in some cases. [thanks nnesori]
Changed GUI buttons to default to "no word-wrap" when no width, height, or CR/LF characters were specified. This may solve button display issues under some desktop themes.
Fixed "Transform HTML" for the following characters: &`n><
Fixed misinterpretation of lines starting with "if not is" such as "if not IsDone".
Fixed inability of "Gui Show" to move a window vertically downward to where its bottommost row of pixels is now.
Fixed inability to use GroupActivate as the only line beneath an IF or ELSE.
Fixed inability of the Input command to differentiate between end-keys enclosed in braces and their (un)shifted counterparts; e.g. '{' vs. '['. [thanks Laszlo]
--------
For anyone using the beta versions announced in the RegEx topic, it is recommended that you upgrade to 1.0.45 because there could be an input/output variable bug depending on the exact version you have. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Sun Nov 05, 2006 3:21 pm Post subject: |
|
|
Wow, the new option for SetTitleMatchMode comes as a (good) surprise!
Great release, much power added!
Thanks for the hard work. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Last edited by PhiLho on Sun Nov 05, 2006 10:42 pm; edited 1 time in total |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Sun Nov 05, 2006 4:58 pm Post subject: |
|
|
Many thanks for making the AutoHotkey language more powerful. _________________ URLGet - Internet Explorer based Downloader |
|
| Back to top |
|
 |
Rabiator
Joined: 17 Apr 2005 Posts: 289 Location: Sauerland
|
Posted: Sun Nov 05, 2006 5:36 pm Post subject: |
|
|
Well-wrought enhancements!
For me, they enlarge the application range of AutoHotkey enormously, thank you very much! |
|
| Back to top |
|
 |
Ragnar
Joined: 02 Oct 2006 Posts: 1
|
Posted: Sun Nov 05, 2006 5:43 pm Post subject: |
|
|
really impressive  |
|
| Back to top |
|
 |
jordis
Joined: 30 Jul 2004 Posts: 81
|
Posted: Sun Nov 05, 2006 6:32 pm Post subject: |
|
|
| Wow! RegEx is a huge step for AHK! Congratulations! |
|
| Back to top |
|
 |
bahri
Joined: 24 Jun 2004 Posts: 114 Location: Malta
|
Posted: Mon Nov 06, 2006 1:09 am Post subject: |
|
|
Thanks for this update.
I see long nights coming up trying out the new RegEx feature.
bahri |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1687
|
Posted: Mon Nov 06, 2006 4:20 am Post subject: |
|
|
great additions Chris! thanks!
...now to learn regex. _________________
 |
|
| Back to top |
|
 |
Stefan
Joined: 30 Jul 2004 Posts: 74 Location: Deutschland (sorry for my english)
|
Posted: Mon Nov 06, 2006 8:14 am Post subject: |
|
|
Hi Chris,
many thanks for supporting RegEx, that's great  _________________ Stefan
This post was created with the kindly help of http://dict.leo.org/ and remember: “Allways look on the bright side of Life” |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Mon Nov 06, 2006 11:37 am Post subject: |
|
|
| Thanks for the enthusiam. It helps confirm that giving RegEx a high priority was the right choice (I'm never sure exactly what should be the highest priority, so I'm left with guessing). |
|
| Back to top |
|
 |
Ace_NoOne
Joined: 10 Oct 2005 Posts: 299 Location: Germany
|
Posted: Mon Nov 06, 2006 1:56 pm Post subject: |
|
|
RegEx support? In AHK? Chris, you're at least 48 days early for that...
Seriously tho, that's just great and will make a huge impact!
(It also comes as kind of a surprise to me, but that's probably because I've been pretty inactive lately. ) |
|
| Back to top |
|
 |
Demokos
Joined: 28 Dec 2005 Posts: 99
|
Posted: Mon Nov 06, 2006 6:20 pm Post subject: |
|
|
Thanks for this new version, Chris.
And, may be it isn't very important, but thanks for the new presentation of the help file... |
|
| Back to top |
|
 |
slomz
Joined: 03 Sep 2006 Posts: 601 Location: Iowa, U.S.
|
Posted: Mon Nov 06, 2006 11:24 pm Post subject: |
|
|
I just downloaded it, wow it is an easier file to read when I refer to the help file. I like the RegEx too, it helps. Great Work      _________________
 |
|
| Back to top |
|
 |
Ace_NoOne
Joined: 10 Oct 2005 Posts: 299 Location: Germany
|
Posted: Tue Nov 07, 2006 9:02 am Post subject: |
|
|
| Demokos wrote: | | may be it isn't very important, but thanks for the new presentation of the help file... | I just noticed the re-designed documentation; great job there too, Czar Chris!
And I'd disagree with Demokos in that I think a well-done documentation is very important. At least for me, the help is probably the most frequently used feature...  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Tue Nov 07, 2006 4:27 pm Post subject: |
|
|
Thanks for the feedback on the documentation. John B. here on the forum helped me a lot with getting everything more consistent and better presented.
Here are the changes for v1.0.45.01:
Fixed FileReadLine and FileSelectFile not to crash or misbehave when other threads interrupt them (broken by 1.0.45). [thanks toralf]
Fixed RegExMatch() so that when there's no match, named subpatterns are properly set to "" in the output array. [thanks PhiLho]
Fixed RegExMatch()'s "J" option to properly write duplicate named subpatterns to the output array. [thanks PhiLho]
Changed SetWorkingDir and #Include DirName to succeed even for a root directory such as C: that lacks a backslash.
Improved DllCall() to display a warning dialog if the called function writes to a variable of zero capacity. |
|
| Back to top |
|
 |
|