AutoHotkey Community

It is currently May 26th, 2012, 5:40 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: June 27th, 2005, 9:10 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
Sorry I made a mistake of forum... This post is for the Bugs one...

I think there is a bug with the % option in continuation sections :

Code:
#x::
   Text = for testing purposes
   clipboard =
(Join`r`n %
Test xxxxxx,xx€ at xx,xx %
An other line %Text%
)
   Send ^v
   return
gives :
Test xxxxxx,xx€ at xx,xx %
An other line %Text%
Witch is correct.

Then
Code:
#x::
   Text = for testing purposes
   clipboard =
(Join`r`n
Test xxxxxx,xx€ at xx,xx
An other line %Text%
)
   Send ^v
   return
gives :
Test xxxxxx,xx€ at xx,xx
An other line for testing purposes
witch is correct, as the content of the "Text" variable is correctly developped.

But
Code:
#x::
   Text = for testing purposes
   clipboard =
(Join`r`n
Test xxxxxx,xx€ at xx,xx `%
An other line %Text%
)
   Send ^v
   return
gives an error :
An other line
Error : this variable or function name contains an illegal character

But in the doc I seen :
Quote:
% (percent sign): Treats percent signs as literal rather than as variable references. This avoids the need to escape each percent sign to make it literal. This option is not needed in places where percent signs are already literal, such as auto-replace hotstrings.

So if I understand well, without the % option, `% gives a litteral % sign, but it is considered as the begining of a variable reference.
I think it is a bug.
Am I right ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2005, 12:26 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
This is definitely a bug and will be fixed in the next update.

Thanks for your very detailed post, which allowed it to be quickly solved.

Edit: This has been fixed in v1.0.36.01. Thanks for your help.


Last edited by Chris on June 28th, 2005, 11:35 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2005, 4:29 am 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
Thanks Chris for moving this post in the right forum and for the future fix.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 29th, 2005, 6:30 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
Thanks Chris for the fix. It's OK under XP but seems to be not under NT4. I will retry tomorrow at work (under NT4) and will confirm it to you (or not...)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 4th, 2005, 5:23 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
Sory I was away. I confirm it's OK under NT4 rev 6


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


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