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.45 released: Regular Expressions (RegEx)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Sun Nov 05, 2006 3:51 pm    Post subject: v1.0.45 released: Regular Expressions (RegEx) Reply with quote

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
View user's profile Send private message Send e-mail
PhiLho



Joined: 27 Dec 2005
Posts: 6702
Location: France (near Paris)

PostPosted: Sun Nov 05, 2006 4:21 pm    Post subject: Reply with quote

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 11:42 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 5298

PostPosted: Sun Nov 05, 2006 5:58 pm    Post subject: Reply with quote

Many thanks for making the AutoHotkey language more powerful.
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
Rabiator



Joined: 17 Apr 2005
Posts: 260
Location: Sauerland

PostPosted: Sun Nov 05, 2006 6:36 pm    Post subject: Reply with quote

Well-wrought enhancements!
For me, they enlarge the application range of AutoHotkey enormously, thank you very much!
Back to top
View user's profile Send private message
Ragnar Frost



Joined: 02 Oct 2006
Posts: 1

PostPosted: Sun Nov 05, 2006 6:43 pm    Post subject: Reply with quote

really impressive Wink
Back to top
View user's profile Send private message
jordis



Joined: 30 Jul 2004
Posts: 78

PostPosted: Sun Nov 05, 2006 7:32 pm    Post subject: Reply with quote

Wow! RegEx is a huge step for AHK! Congratulations!
Back to top
View user's profile Send private message
bahri



Joined: 24 Jun 2004
Posts: 101
Location: Malta

PostPosted: Mon Nov 06, 2006 2:09 am    Post subject: Reply with quote

Thanks for this update.
I see long nights coming up trying out the new RegEx feature.

bahri
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1715

PostPosted: Mon Nov 06, 2006 5:20 am    Post subject: Reply with quote

great additions Chris! thanks! Smile
...now to learn regex.
_________________
Back to top
View user's profile Send private message
Stefan



Joined: 30 Jul 2004
Posts: 72
Location: Deutschland (sorry for my english)

PostPosted: Mon Nov 06, 2006 9:14 am    Post subject: Reply with quote

Hi Chris,
many thanks for supporting RegEx, that's great Shocked Very Happy
_________________
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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon Nov 06, 2006 12:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Ace_NoOne



Joined: 10 Oct 2005
Posts: 333
Location: Germany

PostPosted: Mon Nov 06, 2006 2:56 pm    Post subject: Reply with quote

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. Sad )
Back to top
View user's profile Send private message
Demokos



Joined: 28 Dec 2005
Posts: 84

PostPosted: Mon Nov 06, 2006 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
slomz



Joined: 03 Sep 2006
Posts: 608
Location: Iowa, U.S.

PostPosted: Tue Nov 07, 2006 12:24 am    Post subject: Reply with quote

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 Very HappyVery HappyVery HappyVery HappyVery Happy
_________________
Back to top
View user's profile Send private message AIM Address
Ace_NoOne



Joined: 10 Oct 2005
Posts: 333
Location: Germany

PostPosted: Tue Nov 07, 2006 10:02 am    Post subject: Reply with quote

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... Wink
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Tue Nov 07, 2006 5:27 pm    Post subject: Reply with quote

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
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 1, 2  Next
Page 1 of 2

 
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