Jump to content

#Include Error


Recommended Posts

I have downloaded and copied the ServiceControl.au3 file to my "C:\Program Files\AutoIt3\Include" directory but when I try to run the script I get the following error...

ERROR: can't open include file <ServiceControl.au3>

I have other include commands and they work fine.

What am I doing wrong??? <_<

Link to comment
Share on other sites

  • 3 weeks later...

Open the script with Scite. Place the cursor in the include line that is causing the problem and press Alt+I or Alt+Shift+I to open Beta. Or do something like this:

If FileExists(@ProgramFilesDir & "\AutoIt3\Include\ServiceControl.au3") then 
    MsgBox(0,"","Yup, the file is there")
Else
    MsgBox(0,"","Nope, file missing")
EndIf
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...