AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: function now not working
PostPosted: February 23rd, 2009, 7:03 am 
Offline

Joined: February 21st, 2007, 5:52 am
Posts: 51
Location: Australia
I made some changes to a script which included a function at the end:

Code:
IniKey(LoopCount)
{
  KeyFolderNo = 000%LoopCount%
  StringLen, KeyLength, KeyFolderNo
  If (KeyLength >= 5) {
  KeyFolderNo = 00%LoopCount%
  }
  Return KeyFolderNo
}


I am now getting an error message:
Image

Can anyone suggest why?

Thanks,

Supergrass


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 23rd, 2009, 10:35 am 
Offline

Joined: November 7th, 2006, 9:47 pm
Posts: 1934
Location: Germany
I think its not the funtion the problem. Check your script for enclosing braces. Seems that you have not correctly blocked anything. Without the full script, I can just assume it. I had the problem some times also.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: script now working
PostPosted: February 24th, 2009, 2:04 pm 
Offline

Joined: February 21st, 2007, 5:52 am
Posts: 51
Location: Australia
thanks Tuncay,

I found an extra brace above the identified function :)

Now to iron out the rest of the bugs!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Miguel, SifJar, SKAN and 53 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