#include-once
#include <MsgBoxConstants.au3>
#Include <File.au3>
$oExcel = ObjCreate("Excel.Application")
$oExcel.Visible = 0
HotKeySet("{DEL}", "ExitScript")
Func ExitScript()
$oExcel.Application.Quit
MsgBox($MB_ICONERROR, "MESSAGE", 'PROCESS ABORTED')
Exit
EndFunc
WinActivate("Application")
Global $hWnd = WinWaitActive("Application", "", 5)
$oExcel.Application.WorkBooks.Open("C:\Users\Charlie\Desktop\Data.xlsx")
I do not have AutoIt installed on my machine. I am using the 'AutoIt– Self Extracting Archive' to execute my script. I am getting the below error when I execute the script. What am I missing
Line 2 (File "C\Users\Charlie\Desktop\Script.au3"):
#include <MsgBoxConstants.au3>
Error:Error opening File