Hi,
How to Execute the Uiscripter source code from QM2?
Using the following code, an error is prompted
error CS0009: Metadata file 'c:\Users\Administrator\Desktop\Dll\AuCpp.dll' could not be opened -- 'An attempt was made to load a program that is not in the correct format.
Thanks in advance for any advice and help
david
Macro Macro2
How to Execute the Uiscripter source code from QM2?
Using the following code, an error is prompted
error CS0009: Metadata file 'c:\Users\Administrator\Desktop\Dll\AuCpp.dll' could not be opened -- 'An attempt was made to load a program that is not in the correct format.
Thanks in advance for any advice and help
david
Macro Macro2
CsScript x
x.SetOptions("references=C:\Users\Administrator\Desktop\Dll\Au.dll") ;;Au.dll
x.SetOptions("references=C:\Users\Administrator\Desktop\Dll\AuCpp.dll") ;;AuCpp.dll
x.AddCode("")
;call static function
x.Call("Class1.TestFunction")
#ret
//C# code
using System;
using Au;
using Au.Types;
public class Class1
{
public static void TestFunction()
{
run.it(folders.System + "calc.exe");
}
}