Jump to content
Sign in to follow this  
Rigest

AutoIT broken?

Recommended Posts

Rigest

So all of a sudden all my AutoIT script arn't working anymore. In each script I get an error that some functions are missing the Endfunc statement (which isn't true). Sometimes they even say there are errors in UDF (in which I havn't changed anything):

C:\Program Files\AutoIt3\Include\Excel.au3 (144) : ==> "Func" statement has no matching "EndFunc".:

Func _ExcelBookNew($fVisible = 1)

N:\Auto IT\Scripts\Scripts in progress\klantenservice v1.6.au3 (19) : ==> "Func" statement has no matching "EndFunc".:

Func GUI()

I really have no clue what I did wrong. I didn't install anything new or did anything weird.... anyone ever experienced something like this? How can I fix it?

Share this post


Link to post
Share on other sites
water

Can you post the klantenservice v1.6.au3 so we can have a look at it?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
jvanegmond

This problem:

C:\Program Files\AutoIt3\Include\Excel.au3 (144) : ==> "Func" statement has no matching "EndFunc".:

Func _ExcelBookNew($fVisible = 1)

Seems to be caused like a bad install of AutoIt or something similar. That.. Or you're declaring functions (partly) before you do includes? Like this (in error):

Func HowDidThisGetHereIAmNotGoodWithComputer()

#include <Excel.au3>

I think that can cause the same problem.

Share this post


Link to post
Share on other sites
Rigest

Tnx.

Edited by Rigest

Share this post


Link to post
Share on other sites
water

I tested your script and everything runs fine here.

I think Manadar is right with the assumption that your AutoIT installation is broken.

Reinstall and see what happens.

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Rigest

I tested your script and everything runs fine here.

I think Manadar is right with the assumption that your AutoIT installation is broken.

Reinstall and see what happens.

I did. I installed it on a different pc and tried it on another user account. I don't think it's the installation because it worked fine before... :s

Share this post


Link to post
Share on other sites
water

Next thing I would do is check the include files.

Go to the C:\Program Files\AutoIt3\Include AND the directory where your script is stored and sort the *.au3 files by date. Any files changed lately?

The only files I couldn't find on my system where Outlook.au3 and Santander UDF v1.0.au3. So I created some dummy functions.

Open this two UDFs in SciTE and run the Syntax Check (Ctrl+F5)

As UDFs can include UDFs the problem might be with a nested UDF. So be sure to check all UDFs you've changed lately.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Rigest

Tnx Water, you helped me once again :graduated: ! Apparently someone else was messing around in one of my UDF's. Luckily I had a backup. Cheers!

Share this post


Link to post
Share on other sites
water

Glad the problem could be solved! Have a nice weekend!


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×