01-09-2017, 09:13 PM
Does the above code run without errors?
In any case, if iMacros not installed, it will fail. Use this code instead:
Macro Scripting C#, run Main function, args2
In any case, if iMacros not installed, it will fail. Use this code instead:
Macro Scripting C#, run Main function, args2
;CsExec("")
;If the above says "The type or namespace name 'iMacros' could not be found", use the following code.
;At first copy iimInterface.dll from iMacros folder to QM folder (or to QM-created exe folder).
CsScript x
x.SetOptions("references=iimInterface.dll") ;;maybe don't need ".dll", don't remember
x.Exec("")
#ret
//C# code
using System;
class Test
{
static void Main()
{
,//add the exported C# code here
}
}