public ScriptHandler(string file) { // Initializing script and loading script file try { ahk = new AutoHotkey(); doc = XDocument.Load(file); ReadScripts(); } catch (FileNotFoundException e) { Console.WriteLine("Script file not found. " + e); } }