AutoHotkey Community

It is currently May 27th, 2012, 10:18 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 68 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject:
PostPosted: June 1st, 2011, 9:54 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5482
Location: the tunnel(?=light)
nimda wrote:
need a space before and after each .


Well...you need one before and after each period being used as a concatenation operator.

The error is in red:

Code:
d := (d3 ? (StrLen(d3) = 2 ? 20 : "") . d3 : A_YYYY) . ((d2 := d2 + 0 ? d2 : (InStr(e2, SubStr(d2, 1, 3)) - 40) // 4 + 1.0) > 0 ? d2 + 0.0 : A_MM). ((d1 += 0.0) ? d1 : A_DD) . t1 + (t1 = 12 ? t4 = "am" ? -12.0 : 0.0 : t4 = "am" ? 0.0 : 12.0) . t2 + 0.0 . t3 + 0.0


I have emailed Titan aka polyethene about this and he has no interest in officially correcting it, so you'll have to fix it yourself by putting a space between the close parenthesis and period.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: thanks
PostPosted: June 2nd, 2011, 11:17 am 
Offline

Joined: June 18th, 2006, 8:47 am
Posts: 346
Location: Phoenix, AZ
sinkfaze, Thanks!
It's understandable some members won't want to continually update their code. It is a great function and is working for me now.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2011, 11:43 am 
sinkfaze wrote:
The error is in red:

...not having a space on both sides of . is not an error, it is a limitation, that needs removed. Is this limitation going to remain in AHK_L or be fixed? Actually, as long as "implicit concatenation" works in AHK_L I just choose to not use .'s at all.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2011, 12:48 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5482
Location: the tunnel(?=light)
Anonymous wrote:
...not having a space on both sides of . is not an error...


AHK_L throws an error, and to me no matter which version you use this function with, it's just poor coding one refuses to correct, as all of the other concatenation operators are appropriately spaced in that line.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2012, 11:06 am 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
I got this error:
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2012, 11:12 am 
Azure, that error is posted a few dozen times in this thread, so is the solution. Just read the thread and you'll find it.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2012, 1:13 pm 
Another Abandonware that should be removed from the forum.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2012, 1:39 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Anigav wrote:
Another Abandonware that should be removed from the forum.

This hasn't been abandoned nor should it be removed from the forum. I wrote this script for AutoHotkey Basic where it continues to work as desired. You are welcome to post your modifications for different versions of AutoHotkey, or at least allow other members to use this thread for constructive discussions.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 68 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC [ DST ]


Who is online

Users browsing this forum: specter333, XX0 and 23 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