/// <summary>Execute AHK Function Previously Loaded in Current AHK Session</summary> /// <param name="FunctionName">Name of Function to Call</param> /// <param name="Param1">Parameter to pass into AHK function</param> /// <param name="Param2">Parameter to pass into AHK function</param> /// <param name="Param3">Parameter to pass into AHK function</param> /// <param name="Param4">Parameter to pass into AHK function</param> /// <param name="Param5">Parameter to pass into AHK function</param> /// <param name="Param6">Parameter to pass into AHK function</param> /// <param name="Param7">Parameter to pass into AHK function</param> /// <param name="Param8">Parameter to pass into AHK function</param> /// <param name="Param9">Parameter to pass into AHK function</param> /// <param name="Param10">Parameter to pass into AHK function</param> /// <returns>Returns value of function? Untested</returns> public static string Function(string FunctionName, string Param1 = null, string Param2 = null, string Param3 = null, string Param4 = null, string Param5 = null, string Param6 = null, string Param7 = null, string Param8 = null, string Param9 = null, string Param10 = null) // launch AHK function and return value if there is one { _AHK ahk = new _AHK(); return(ahk.Function(FunctionName, Param1, Param2, Param3, Param4, Param5, Param6, Param7, Param8, Param9, Param10)); }