Jump to content

Recommended Posts

Posted (edited)

Hello, me again.I'm trying to use prospeed for my project.I included it, but when I try to run it, I get this error:

C:\Program Files\AutoIt3\Include\Prospeed.au3(10,30) : ERROR: Opt() called with illegal argument 1: "OnExitFunc"
Opt("OnExitFunc", "Close_DLL")

I don't know why I get this error.I downloaded from a thread, several Prospeed examples.I run them, and they work just fine.I use the same file those examples do.I can't figure out what's the problem.

LE:If I run my script from it's folder, i don't get that error.If i run from scite, i still get the error, but pressing the "continue anyway" button, starts the script ;).

But still.Is it normal to get this error?

LLE:It seems that every function i try to use, gets an error...

Edited by bullygil
Posted

Opt("OnExitFunc", ......) is old AutoIt syntax ...

search the help file of your version for 'OnAutoItExitRegister' for new syntax, and replace

hth,

whim

  • 6 years later...

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
×
×
  • Create New...