Why there is no Autoit or .NET tutorials in English it is all in german :3:rtfm::rtfm:
10/26/2015 20:02alpines#2
This is one of the most disappointing threads I've seen in a while.
What's keeping you from showing the part where the error occurs or keeping you from isolating the problem on a new script so we can fix it?
The error message you posted shows that you're missing an EndFunc since you've opened a function and forgot to write EndFunc to close it.