5119 lines
143 KiB
C#
5119 lines
143 KiB
C#
using System;
|
|
using System.Reflection;
|
|
using System.Runtime.InteropServices;
|
|
|
|
public class dmsoft
|
|
{
|
|
private Type obj = null;
|
|
private object obj_object = null;
|
|
|
|
public dmsoft()
|
|
{
|
|
obj = Type.GetTypeFromProgID("dm.dmsoft");
|
|
obj_object = Activator.CreateInstance(obj);
|
|
}
|
|
|
|
// 调用此接口进行com对象释放
|
|
public void ReleaseObj()
|
|
{
|
|
if (obj_object != null)
|
|
{
|
|
Marshal.ReleaseComObject(obj_object);
|
|
obj_object = null;
|
|
}
|
|
}
|
|
|
|
~dmsoft()
|
|
{
|
|
ReleaseObj();
|
|
}
|
|
|
|
public int SetRowGapNoDict(int row_gap)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = row_gap;
|
|
|
|
result = obj.InvokeMember("SetRowGapNoDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableMouseSync(int en,int time_out)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = en;
|
|
args[1] = time_out;
|
|
|
|
result = obj.InvokeMember("EnableMouseSync", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetCursorShapeEx(int tpe)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = tpe;
|
|
|
|
result = obj.InvokeMember("GetCursorShapeEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetTime()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetTime", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CheckUAC()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("CheckUAC", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableRealMouse(int en,int mousedelay,int mousestep)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = en;
|
|
args[1] = mousedelay;
|
|
args[2] = mousestep;
|
|
|
|
result = obj.InvokeMember("EnableRealMouse", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string ReadStringAddr(int hwnd,long addr,int tpe,int length)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = tpe;
|
|
args[3] = length;
|
|
|
|
result = obj.InvokeMember("ReadStringAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FindShape(int x1,int y1,int x2,int y2,string offset_color,double sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(9);
|
|
mods[0][7] = true;
|
|
mods[0][8] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = offset_color;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("FindShape", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[7];
|
|
y = (int)args[8];
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetWindow(int hwnd,int flag)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = flag;
|
|
|
|
result = obj.InvokeMember("GetWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetPicSize(string pic_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pic_name;
|
|
|
|
result = obj.InvokeMember("GetPicSize", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetWindowProcessPath(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("GetWindowProcessPath", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int ExitOs(int tpe)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = tpe;
|
|
|
|
result = obj.InvokeMember("ExitOs", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LeftClick()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("LeftClick", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public long AsmCallEx(int hwnd,int mode,string base_addr)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = mode;
|
|
args[2] = base_addr;
|
|
|
|
result = obj.InvokeMember("AsmCallEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return Convert.ToInt64(result);
|
|
}
|
|
|
|
public int MoveFile(string src_file,string dst_file)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = src_file;
|
|
args[1] = dst_file;
|
|
|
|
result = obj.InvokeMember("MoveFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarFillRect(int hwnd,int x1,int y1,int x2,int y2,string color)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x1;
|
|
args[2] = y1;
|
|
args[3] = x2;
|
|
args[4] = y2;
|
|
args[5] = color;
|
|
|
|
result = obj.InvokeMember("FoobarFillRect", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetWindowSize(int hwnd,int width,int height)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = width;
|
|
args[2] = height;
|
|
|
|
result = obj.InvokeMember("SetWindowSize", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SendStringIme(string str)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = str;
|
|
|
|
result = obj.InvokeMember("SendStringIme", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int IsBind(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("IsBind", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string BGR2RGB(string bgr_color)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = bgr_color;
|
|
|
|
result = obj.InvokeMember("BGR2RGB", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int RightDown()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("RightDown", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnterCri()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("EnterCri", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetClipboard(string data)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = data;
|
|
|
|
result = obj.InvokeMember("SetClipboard", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetScreenDepth()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetScreenDepth", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetBindWindow()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetBindWindow", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int Beep(int fre,int delay)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = fre;
|
|
args[1] = delay;
|
|
|
|
result = obj.InvokeMember("Beep", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindStrFastS(int x1,int y1,int x2,int y2,string str,string color,double sim,out int x,out int y)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(9);
|
|
mods[0][7] = true;
|
|
mods[0][8] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStrFastS", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[7];
|
|
y = (int)args[8];
|
|
return result.ToString();
|
|
}
|
|
|
|
public long GetRemoteApiAddress(int hwnd,long base_addr,string fun_name)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = base_addr;
|
|
args[2] = fun_name;
|
|
|
|
result = obj.InvokeMember("GetRemoteApiAddress", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return Convert.ToInt64(result);
|
|
}
|
|
|
|
public string GetMachineCode()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetMachineCode", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetPath(string path)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = path;
|
|
|
|
result = obj.InvokeMember("SetPath", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetNowDict()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetNowDict", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string EnumIniKeyPwd(string section,string file_name,string pwd)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = section;
|
|
args[1] = file_name;
|
|
args[2] = pwd;
|
|
|
|
result = obj.InvokeMember("EnumIniKeyPwd", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int DeleteFile(string file_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = file_name;
|
|
|
|
result = obj.InvokeMember("DeleteFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int RegExNoMac(string code,string Ver,string ip)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = code;
|
|
args[1] = Ver;
|
|
args[2] = ip;
|
|
|
|
result = obj.InvokeMember("RegExNoMac", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetFileLength(string file_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = file_name;
|
|
|
|
result = obj.InvokeMember("GetFileLength", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int InitCri()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("InitCri", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindColorE(int x1,int y1,int x2,int y2,string color,double sim,int dir)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("FindColorE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetMinRowGap(int row_gap)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = row_gap;
|
|
|
|
result = obj.InvokeMember("SetMinRowGap", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetMemoryUsage()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetMemoryUsage", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int AiFindPic(int x1,int y1,int x2,int y2,string pic_name,double sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(9);
|
|
mods[0][7] = true;
|
|
mods[0][8] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("AiFindPic", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[7];
|
|
y = (int)args[8];
|
|
return (int)result;
|
|
}
|
|
|
|
public string ReadFile(string file_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = file_name;
|
|
|
|
result = obj.InvokeMember("ReadFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int CaptureGif(int x1,int y1,int x2,int y2,string file_name,int delay,int time)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = file_name;
|
|
args[5] = delay;
|
|
args[6] = time;
|
|
|
|
result = obj.InvokeMember("CaptureGif", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableMouseMsg(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableMouseMsg", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetScreen(int width,int height,int depth)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = width;
|
|
args[1] = height;
|
|
args[2] = depth;
|
|
|
|
result = obj.InvokeMember("SetScreen", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FaqRelease(int handle)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = handle;
|
|
|
|
result = obj.InvokeMember("FaqRelease", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int AiYoloFreeModel(int index)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = index;
|
|
|
|
result = obj.InvokeMember("AiYoloFreeModel", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DmGuardExtract(string tpe,string path)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = tpe;
|
|
args[1] = path;
|
|
|
|
result = obj.InvokeMember("DmGuardExtract", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetFps()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetFps", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindStr(int x1,int y1,int x2,int y2,string str,string color,double sim,out int x,out int y)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(9);
|
|
mods[0][7] = true;
|
|
mods[0][8] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStr", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[7];
|
|
y = (int)args[8];
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetDisplayInfo()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetDisplayInfo", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int BindWindowEx(int hwnd,string display,string mouse,string keypad,string public_desc,int mode)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = display;
|
|
args[2] = mouse;
|
|
args[3] = keypad;
|
|
args[4] = public_desc;
|
|
args[5] = mode;
|
|
|
|
result = obj.InvokeMember("BindWindowEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int AiFindPicMem(int x1,int y1,int x2,int y2,string pic_info,double sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(9);
|
|
mods[0][7] = true;
|
|
mods[0][8] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_info;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("AiFindPicMem", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[7];
|
|
y = (int)args[8];
|
|
return (int)result;
|
|
}
|
|
|
|
public string MatchPicName(string pic_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pic_name;
|
|
|
|
result = obj.InvokeMember("MatchPicName", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public double ReadDoubleAddr(int hwnd,long addr)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
|
|
result = obj.InvokeMember("ReadDoubleAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (double)result;
|
|
}
|
|
|
|
public int DisableScreenSave()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("DisableScreenSave", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int Int64ToInt32(long v)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = v;
|
|
|
|
result = obj.InvokeMember("Int64ToInt32", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int UseDict(int index)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = index;
|
|
|
|
result = obj.InvokeMember("UseDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int Delays(int min_s,int max_s)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = min_s;
|
|
args[1] = max_s;
|
|
|
|
result = obj.InvokeMember("Delays", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string OcrInFile(int x1,int y1,int x2,int y2,string pic_name,string color,double sim)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("OcrInFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetLocale()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("SetLocale", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetColorHSV(int x,int y)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = x;
|
|
args[1] = y;
|
|
|
|
result = obj.InvokeMember("GetColorHSV", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string ReadIni(string section,string key,string file_name)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = section;
|
|
args[1] = key;
|
|
args[2] = file_name;
|
|
|
|
result = obj.InvokeMember("ReadIni", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetInputDm(int input_dm,int rx,int ry)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = input_dm;
|
|
args[1] = rx;
|
|
args[2] = ry;
|
|
|
|
result = obj.InvokeMember("SetInputDm", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindColorBlockEx(int x1,int y1,int x2,int y2,string color,double sim,int count,int width,int height)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
args[6] = count;
|
|
args[7] = width;
|
|
args[8] = height;
|
|
|
|
result = obj.InvokeMember("FindColorBlockEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int CheckInputMethod(int hwnd,string id)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = id;
|
|
|
|
result = obj.InvokeMember("CheckInputMethod", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int delay(int mis)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = mis;
|
|
|
|
result = obj.InvokeMember("delay", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int AsmClear()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("AsmClear", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindWindowByProcessId(int process_id,string class_name,string title_name)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = process_id;
|
|
args[1] = class_name;
|
|
args[2] = title_name;
|
|
|
|
result = obj.InvokeMember("FindWindowByProcessId", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SpeedNormalGraphic(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("SpeedNormalGraphic", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int Play(string file_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = file_name;
|
|
|
|
result = obj.InvokeMember("Play", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SendString2(int hwnd,string str)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = str;
|
|
|
|
result = obj.InvokeMember("SendString2", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindColorBlock(int x1,int y1,int x2,int y2,string color,double sim,int count,int width,int height,out int x,out int y)
|
|
{
|
|
object[] args = new object[11];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(11);
|
|
mods[0][9] = true;
|
|
mods[0][10] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
args[6] = count;
|
|
args[7] = width;
|
|
args[8] = height;
|
|
|
|
result = obj.InvokeMember("FindColorBlock", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[9];
|
|
y = (int)args[10];
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetDmCount()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetDmCount", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string SortPosDistance(string all_pos,int tpe,int x,int y)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = all_pos;
|
|
args[1] = tpe;
|
|
args[2] = x;
|
|
args[3] = y;
|
|
|
|
result = obj.InvokeMember("SortPosDistance", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string DoubleToData(double double_value)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = double_value;
|
|
|
|
result = obj.InvokeMember("DoubleToData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetAero(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("SetAero", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string VirtualQueryEx(int hwnd,long addr,int pmbi)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = pmbi;
|
|
|
|
result = obj.InvokeMember("VirtualQueryEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindData(int hwnd,string addr_range,string data)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = data;
|
|
|
|
result = obj.InvokeMember("FindData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int AiYoloSetModelMemory(int index,int addr,int size,string pwd)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = addr;
|
|
args[2] = size;
|
|
args[3] = pwd;
|
|
|
|
result = obj.InvokeMember("AiYoloSetModelMemory", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteInt(int hwnd,string addr,int tpe,long v)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = tpe;
|
|
args[3] = v;
|
|
|
|
result = obj.InvokeMember("WriteInt", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SendPaste(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("SendPaste", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WheelUp()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("WheelUp", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableIme(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableIme", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetID()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetID", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetMouseSpeed()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetMouseSpeed", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WheelDown()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("WheelDown", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarPrintText(int hwnd,string text,string color)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = text;
|
|
args[2] = color;
|
|
|
|
result = obj.InvokeMember("FoobarPrintText", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetSpecialWindow(int flag)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = flag;
|
|
|
|
result = obj.InvokeMember("GetSpecialWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int RightClick()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("RightClick", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetShowErrorMsg(int show)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = show;
|
|
|
|
result = obj.InvokeMember("SetShowErrorMsg", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindMultiColor(int x1,int y1,int x2,int y2,string first_color,string offset_color,double sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[10];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(10);
|
|
mods[0][8] = true;
|
|
mods[0][9] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = first_color;
|
|
args[5] = offset_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindMultiColor", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[8];
|
|
y = (int)args[9];
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableFontSmooth()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("EnableFontSmooth", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetWords(int x1,int y1,int x2,int y2,string color,double sim)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
|
|
result = obj.InvokeMember("GetWords", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetPath()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetPath", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetScreenHeight()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetScreenHeight", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int KeyPressStr(string key_str,int delay)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = key_str;
|
|
args[1] = delay;
|
|
|
|
result = obj.InvokeMember("KeyPressStr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CreateFoobarRoundRect(int hwnd,int x,int y,int w,int h,int rw,int rh)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
args[3] = w;
|
|
args[4] = h;
|
|
args[5] = rw;
|
|
args[6] = rh;
|
|
|
|
result = obj.InvokeMember("CreateFoobarRoundRect", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LeftDoubleClick()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("LeftDoubleClick", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SendString(int hwnd,string str)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = str;
|
|
|
|
result = obj.InvokeMember("SendString", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindStrFast(int x1,int y1,int x2,int y2,string str,string color,double sim,out int x,out int y)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(9);
|
|
mods[0][7] = true;
|
|
mods[0][8] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStrFast", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[7];
|
|
y = (int)args[8];
|
|
return (int)result;
|
|
}
|
|
|
|
public int CreateFoobarEllipse(int hwnd,int x,int y,int w,int h)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
args[3] = w;
|
|
args[4] = h;
|
|
|
|
result = obj.InvokeMember("CreateFoobarEllipse", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetFindPicMultithreadCount(int count)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = count;
|
|
|
|
result = obj.InvokeMember("SetFindPicMultithreadCount", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarTextPrintDir(int hwnd,int dir)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = dir;
|
|
|
|
result = obj.InvokeMember("FoobarTextPrintDir", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindStrS(int x1,int y1,int x2,int y2,string str,string color,double sim,out int x,out int y)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(9);
|
|
mods[0][7] = true;
|
|
mods[0][8] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStrS", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[7];
|
|
y = (int)args[8];
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetColGapNoDict(int col_gap)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = col_gap;
|
|
|
|
result = obj.InvokeMember("SetColGapNoDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int RunApp(string path,int mode)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = path;
|
|
args[1] = mode;
|
|
|
|
result = obj.InvokeMember("RunApp", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int KeyDown(int vk)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = vk;
|
|
|
|
result = obj.InvokeMember("KeyDown", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int IsFolderExist(string folder)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = folder;
|
|
|
|
result = obj.InvokeMember("IsFolderExist", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DeleteIni(string section,string key,string file_name)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = section;
|
|
args[1] = key;
|
|
args[2] = file_name;
|
|
|
|
result = obj.InvokeMember("DeleteIni", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetColorNum(int x1,int y1,int x2,int y2,string color,double sim)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
|
|
result = obj.InvokeMember("GetColorNum", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FreeProcessMemory(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("FreeProcessMemory", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindInputMethod(string id)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = id;
|
|
|
|
result = obj.InvokeMember("FindInputMethod", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DelEnv(int index,string name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = name;
|
|
|
|
result = obj.InvokeMember("DelEnv", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int KeyUpChar(string key_str)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = key_str;
|
|
|
|
result = obj.InvokeMember("KeyUpChar", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FreeScreenData(int handle)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = handle;
|
|
|
|
result = obj.InvokeMember("FreeScreenData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindPicSimMemEx(int x1,int y1,int x2,int y2,string pic_info,string delta_color,int sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_info;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicSimMemEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int AiYoloDetectObjectsToDataBmp(int x1,int y1,int x2,int y2,double prob,double iou,out int data,out int size,int mode)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(9);
|
|
mods[0][6] = true;
|
|
mods[0][7] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = prob;
|
|
args[5] = iou;
|
|
args[8] = mode;
|
|
|
|
result = obj.InvokeMember("AiYoloDetectObjectsToDataBmp", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
data = (int)args[6];
|
|
size = (int)args[7];
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindColor(int x1,int y1,int x2,int y2,string color,double sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[9];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(9);
|
|
mods[0][7] = true;
|
|
mods[0][8] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("FindColor", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[7];
|
|
y = (int)args[8];
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindFloat(int hwnd,string addr_range,float float_value_min,float float_value_max)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = float_value_min;
|
|
args[3] = float_value_max;
|
|
|
|
result = obj.InvokeMember("FindFloat", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetWindowTitle(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("GetWindowTitle", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string ReadString(int hwnd,string addr,int tpe,int length)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = tpe;
|
|
args[3] = length;
|
|
|
|
result = obj.InvokeMember("ReadString", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int LeaveCri()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("LeaveCri", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int TerminateProcess(int pid)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pid;
|
|
|
|
result = obj.InvokeMember("TerminateProcess", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int HackSpeed(double rate)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = rate;
|
|
|
|
result = obj.InvokeMember("HackSpeed", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string DmGuardParams(string cmd,string sub_cmd,string param)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = cmd;
|
|
args[1] = sub_cmd;
|
|
args[2] = param;
|
|
|
|
result = obj.InvokeMember("DmGuardParams", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindFloatEx(int hwnd,string addr_range,float float_value_min,float float_value_max,int steps,int multi_thread,int mode)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = float_value_min;
|
|
args[3] = float_value_max;
|
|
args[4] = steps;
|
|
args[5] = multi_thread;
|
|
args[6] = mode;
|
|
|
|
result = obj.InvokeMember("FindFloatEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int EnableRealKeypad(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableRealKeypad", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetMousePointWindow()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetMousePointWindow", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FaqFetch()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("FaqFetch", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int EnableSpeedDx(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableSpeedDx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SwitchBindWindow(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("SwitchBindWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetCpuUsage()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetCpuUsage", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindPicSim(int x1,int y1,int x2,int y2,string pic_name,string delta_color,int sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[10];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(10);
|
|
mods[0][8] = true;
|
|
mods[0][9] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicSim", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[8];
|
|
y = (int)args[9];
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindStrWithFont(int x1,int y1,int x2,int y2,string str,string color,double sim,string font_name,int font_size,int flag,out int x,out int y)
|
|
{
|
|
object[] args = new object[12];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(12);
|
|
mods[0][10] = true;
|
|
mods[0][11] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
args[7] = font_name;
|
|
args[8] = font_size;
|
|
args[9] = flag;
|
|
|
|
result = obj.InvokeMember("FindStrWithFont", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[10];
|
|
y = (int)args[11];
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableDisplayDebug(int enable_debug)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = enable_debug;
|
|
|
|
result = obj.InvokeMember("EnableDisplayDebug", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int MiddleClick()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("MiddleClick", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetPicPwd(string pwd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pwd;
|
|
|
|
result = obj.InvokeMember("SetPicPwd", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FloatToData(float float_value)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = float_value;
|
|
|
|
result = obj.InvokeMember("FloatToData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string DisAssemble(string asm_code,long base_addr,int is_64bit)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = asm_code;
|
|
args[1] = base_addr;
|
|
args[2] = is_64bit;
|
|
|
|
result = obj.InvokeMember("DisAssemble", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindStrWithFontE(int x1,int y1,int x2,int y2,string str,string color,double sim,string font_name,int font_size,int flag)
|
|
{
|
|
object[] args = new object[10];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
args[7] = font_name;
|
|
args[8] = font_size;
|
|
args[9] = flag;
|
|
|
|
result = obj.InvokeMember("FindStrWithFontE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string OcrExOne(int x1,int y1,int x2,int y2,string color,double sim)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
|
|
result = obj.InvokeMember("OcrExOne", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FoobarStopGif(int hwnd,int x,int y,string pic_name)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
args[3] = pic_name;
|
|
|
|
result = obj.InvokeMember("FoobarStopGif", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindDoubleEx(int hwnd,string addr_range,double double_value_min,double double_value_max,int steps,int multi_thread,int mode)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = double_value_min;
|
|
args[3] = double_value_max;
|
|
args[4] = steps;
|
|
args[5] = multi_thread;
|
|
args[6] = mode;
|
|
|
|
result = obj.InvokeMember("FindDoubleEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetCursorPos(out int x,out int y)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(2);
|
|
mods[0][0] = true;
|
|
mods[0][1] = true;
|
|
|
|
|
|
result = obj.InvokeMember("GetCursorPos", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[0];
|
|
y = (int)args[1];
|
|
return (int)result;
|
|
}
|
|
|
|
public string ReadFileData(string file_name,int start_pos,int end_pos)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = file_name;
|
|
args[1] = start_pos;
|
|
args[2] = end_pos;
|
|
|
|
result = obj.InvokeMember("ReadFileData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetDictCount(int index)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = index;
|
|
|
|
result = obj.InvokeMember("GetDictCount", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetOsBuildNumber()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetOsBuildNumber", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FaqPost(string server,int handle,int request_type,int time_out)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = server;
|
|
args[1] = handle;
|
|
args[2] = request_type;
|
|
args[3] = time_out;
|
|
|
|
result = obj.InvokeMember("FaqPost", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int AiEnableFindPicWindow(int enable)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = enable;
|
|
|
|
result = obj.InvokeMember("AiEnableFindPicWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DecodeFile(string file_name,string pwd)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = file_name;
|
|
args[1] = pwd;
|
|
|
|
result = obj.InvokeMember("DecodeFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DisableCloseDisplayAndSleep()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("DisableCloseDisplayAndSleep", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarClearText(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("FoobarClearText", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarClose(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("FoobarClose", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SaveDict(int index,string file_name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = file_name;
|
|
|
|
result = obj.InvokeMember("SaveDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarDrawText(int hwnd,int x,int y,int w,int h,string text,string color,int align)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
args[3] = w;
|
|
args[4] = h;
|
|
args[5] = text;
|
|
args[6] = color;
|
|
args[7] = align;
|
|
|
|
result = obj.InvokeMember("FoobarDrawText", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetKeypadDelay(string tpe,int delay)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = tpe;
|
|
args[1] = delay;
|
|
|
|
result = obj.InvokeMember("SetKeypadDelay", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetDict(int index,string dict_name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = dict_name;
|
|
|
|
result = obj.InvokeMember("SetDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetNetTimeByIp(string ip)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = ip;
|
|
|
|
result = obj.InvokeMember("GetNetTimeByIp", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetSendStringDelay(int delay)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = delay;
|
|
|
|
result = obj.InvokeMember("SetSendStringDelay", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string ReadData(int hwnd,string addr,int length)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = length;
|
|
|
|
result = obj.InvokeMember("ReadData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int MoveDD(int dx,int dy)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = dx;
|
|
args[1] = dy;
|
|
|
|
result = obj.InvokeMember("MoveDD", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarUnlock(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("FoobarUnlock", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int Stop(int id)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = id;
|
|
|
|
result = obj.InvokeMember("Stop", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int ForceUnBindWindow(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("ForceUnBindWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetResultPos(string str,int index,out int x,out int y)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(4);
|
|
mods[0][2] = true;
|
|
mods[0][3] = true;
|
|
|
|
args[0] = str;
|
|
args[1] = index;
|
|
|
|
result = obj.InvokeMember("GetResultPos", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[2];
|
|
y = (int)args[3];
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindStrFastExS(int x1,int y1,int x2,int y2,string str,string color,double sim)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStrFastExS", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int ShowScrMsg(int x1,int y1,int x2,int y2,string msg,string color)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = msg;
|
|
args[5] = color;
|
|
|
|
result = obj.InvokeMember("ShowScrMsg", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindPicMemEx(int x1,int y1,int x2,int y2,string pic_info,string delta_color,double sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_info;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicMemEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindIntEx(int hwnd,string addr_range,long int_value_min,long int_value_max,int tpe,int steps,int multi_thread,int mode)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = int_value_min;
|
|
args[3] = int_value_max;
|
|
args[4] = tpe;
|
|
args[5] = steps;
|
|
args[6] = multi_thread;
|
|
args[7] = mode;
|
|
|
|
result = obj.InvokeMember("FindIntEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetLocale()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetLocale", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LoadPicByte(int addr,int size,string name)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = addr;
|
|
args[1] = size;
|
|
args[2] = name;
|
|
|
|
result = obj.InvokeMember("LoadPicByte", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int IsDisplayDead(int x1,int y1,int x2,int y2,int t)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = t;
|
|
|
|
result = obj.InvokeMember("IsDisplayDead", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetColorBGR(int x,int y)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = x;
|
|
args[1] = y;
|
|
|
|
result = obj.InvokeMember("GetColorBGR", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetScreenDataBmp(int x1,int y1,int x2,int y2,out int data,out int size)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(6);
|
|
mods[0][4] = true;
|
|
mods[0][5] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
|
|
result = obj.InvokeMember("GetScreenDataBmp", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
data = (int)args[4];
|
|
size = (int)args[5];
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetCursorSpot()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetCursorSpot", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindPicExS(int x1,int y1,int x2,int y2,string pic_name,string delta_color,double sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicExS", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetWindowThreadId(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("GetWindowThreadId", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int KeyDownChar(string key_str)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = key_str;
|
|
|
|
result = obj.InvokeMember("KeyDownChar", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetKeyState(int vk)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = vk;
|
|
|
|
result = obj.InvokeMember("GetKeyState", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CheckFontSmooth()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("CheckFontSmooth", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LockMouseRect(int x1,int y1,int x2,int y2)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
|
|
result = obj.InvokeMember("LockMouseRect", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FaqGetSize(int handle)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = handle;
|
|
|
|
result = obj.InvokeMember("FaqGetSize", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindPicSimEx(int x1,int y1,int x2,int y2,string pic_name,string delta_color,int sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicSimEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public float ReadFloat(int hwnd,string addr)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
|
|
result = obj.InvokeMember("ReadFloat", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (float)result;
|
|
}
|
|
|
|
public int WriteDoubleAddr(int hwnd,long addr,double v)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = v;
|
|
|
|
result = obj.InvokeMember("WriteDoubleAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetDict(int index,int font_index)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = font_index;
|
|
|
|
result = obj.InvokeMember("GetDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string MoveToEx(int x,int y,int w,int h)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = x;
|
|
args[1] = y;
|
|
args[2] = w;
|
|
args[3] = h;
|
|
|
|
result = obj.InvokeMember("MoveToEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetCursorShape()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetCursorShape", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int IsSurrpotVt()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("IsSurrpotVt", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LoadPic(string pic_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pic_name;
|
|
|
|
result = obj.InvokeMember("LoadPic", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int KeyUp(int vk)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = vk;
|
|
|
|
result = obj.InvokeMember("KeyUp", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CapturePre(string file_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = file_name;
|
|
|
|
result = obj.InvokeMember("CapturePre", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetDiskReversion(int index)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = index;
|
|
|
|
result = obj.InvokeMember("GetDiskReversion", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetRealPath(string path)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = path;
|
|
|
|
result = obj.InvokeMember("GetRealPath", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetWordLineHeight(int line_height)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = line_height;
|
|
|
|
result = obj.InvokeMember("SetWordLineHeight", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int ReleaseRef()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("ReleaseRef", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnablePicCache(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnablePicCache", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindInt(int hwnd,string addr_range,long int_value_min,long int_value_max,int tpe)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = int_value_min;
|
|
args[3] = int_value_max;
|
|
args[4] = tpe;
|
|
|
|
result = obj.InvokeMember("FindInt", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int Log(string info)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = info;
|
|
|
|
result = obj.InvokeMember("Log", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int ShowTaskBarIcon(int hwnd,int is_show)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = is_show;
|
|
|
|
result = obj.InvokeMember("ShowTaskBarIcon", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DmGuard(int en,string tpe)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = en;
|
|
args[1] = tpe;
|
|
|
|
result = obj.InvokeMember("DmGuard", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindString(int hwnd,string addr_range,string string_value,int tpe)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = string_value;
|
|
args[3] = tpe;
|
|
|
|
result = obj.InvokeMember("FindString", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FreePic(string pic_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pic_name;
|
|
|
|
result = obj.InvokeMember("FreePic", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CreateFoobarRect(int hwnd,int x,int y,int w,int h)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
args[3] = w;
|
|
args[4] = h;
|
|
|
|
result = obj.InvokeMember("CreateFoobarRect", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int VirtualProtectEx(int hwnd,long addr,int size,int tpe,int old_protect)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = size;
|
|
args[3] = tpe;
|
|
args[4] = old_protect;
|
|
|
|
result = obj.InvokeMember("VirtualProtectEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetAveHSV(int x1,int y1,int x2,int y2)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
|
|
result = obj.InvokeMember("GetAveHSV", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetWindowProcessId(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("GetWindowProcessId", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetClipboard()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetClipboard", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetMinColGap(int col_gap)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = col_gap;
|
|
|
|
result = obj.InvokeMember("SetMinColGap", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DeleteIniPwd(string section,string key,string file_name,string pwd)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = section;
|
|
args[1] = key;
|
|
args[2] = file_name;
|
|
args[3] = pwd;
|
|
|
|
result = obj.InvokeMember("DeleteIniPwd", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetPointWindow(int x,int y)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = x;
|
|
args[1] = y;
|
|
|
|
result = obj.InvokeMember("GetPointWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FaqSend(string server,int handle,int request_type,int time_out)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = server;
|
|
args[1] = handle;
|
|
args[2] = request_type;
|
|
args[3] = time_out;
|
|
|
|
result = obj.InvokeMember("FaqSend", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int AsmSetTimeout(int time_out,int param)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = time_out;
|
|
args[1] = param;
|
|
|
|
result = obj.InvokeMember("AsmSetTimeout", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetMouseSpeed(int speed)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = speed;
|
|
|
|
result = obj.InvokeMember("SetMouseSpeed", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CopyFile(string src_file,string dst_file,int over)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = src_file;
|
|
args[1] = dst_file;
|
|
args[2] = over;
|
|
|
|
result = obj.InvokeMember("CopyFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindStrExS(int x1,int y1,int x2,int y2,string str,string color,double sim)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStrExS", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string AiYoloDetectObjects(int x1,int y1,int x2,int y2,double prob,double iou)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = prob;
|
|
args[5] = iou;
|
|
|
|
result = obj.InvokeMember("AiYoloDetectObjects", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindDouble(int hwnd,string addr_range,double double_value_min,double double_value_max)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = double_value_min;
|
|
args[3] = double_value_max;
|
|
|
|
result = obj.InvokeMember("FindDouble", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetDictInfo(string str,string font_name,int font_size,int flag)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = str;
|
|
args[1] = font_name;
|
|
args[2] = font_size;
|
|
args[3] = flag;
|
|
|
|
result = obj.InvokeMember("GetDictInfo", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int AiYoloUseModel(int index)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = index;
|
|
|
|
result = obj.InvokeMember("AiYoloUseModel", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int ImageToBmp(string pic_name,string bmp_name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = pic_name;
|
|
args[1] = bmp_name;
|
|
|
|
result = obj.InvokeMember("ImageToBmp", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string IntToData(long int_value,int tpe)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = int_value;
|
|
args[1] = tpe;
|
|
|
|
result = obj.InvokeMember("IntToData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FaqCaptureString(string str)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = str;
|
|
|
|
result = obj.InvokeMember("FaqCaptureString", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string Assemble(long base_addr,int is_64bit)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = base_addr;
|
|
args[1] = is_64bit;
|
|
|
|
result = obj.InvokeMember("Assemble", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string Ver()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("Ver", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FetchWord(int x1,int y1,int x2,int y2,string color,string word)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = word;
|
|
|
|
result = obj.InvokeMember("FetchWord", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int MiddleDown()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("MiddleDown", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindStrFastE(int x1,int y1,int x2,int y2,string str,string color,double sim)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStrFastE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetWordLineHeightNoDict(int line_height)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = line_height;
|
|
|
|
result = obj.InvokeMember("SetWordLineHeightNoDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarUpdate(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("FoobarUpdate", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string Hex32(int v)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = v;
|
|
|
|
result = obj.InvokeMember("Hex32", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string AppendPicAddr(string pic_info,int addr,int size)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = pic_info;
|
|
args[1] = addr;
|
|
args[2] = size;
|
|
|
|
result = obj.InvokeMember("AppendPicAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int AiYoloSetVersion(string Ver)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = Ver;
|
|
|
|
result = obj.InvokeMember("AiYoloSetVersion", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string Md5(string str)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = str;
|
|
|
|
result = obj.InvokeMember("Md5", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int OpenProcess(int pid)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pid;
|
|
|
|
result = obj.InvokeMember("OpenProcess", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetDisplayRefreshDelay(int t)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = t;
|
|
|
|
result = obj.InvokeMember("SetDisplayRefreshDelay", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetWindowTransparent(int hwnd,int v)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = v;
|
|
|
|
result = obj.InvokeMember("SetWindowTransparent", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetWordGapNoDict(int word_gap)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = word_gap;
|
|
|
|
result = obj.InvokeMember("SetWordGapNoDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetEnumWindowDelay(int delay)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = delay;
|
|
|
|
result = obj.InvokeMember("SetEnumWindowDelay", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int AiYoloSetModel(int index,string file_name,string pwd)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = file_name;
|
|
args[2] = pwd;
|
|
|
|
result = obj.InvokeMember("AiYoloSetModel", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string StringToData(string string_value,int tpe)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = string_value;
|
|
args[1] = tpe;
|
|
|
|
result = obj.InvokeMember("StringToData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetClientSize(int hwnd,int width,int height)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = width;
|
|
args[2] = height;
|
|
|
|
result = obj.InvokeMember("SetClientSize", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetDisplayAcceler(int level)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = level;
|
|
|
|
result = obj.InvokeMember("SetDisplayAcceler", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WaitKey(int key_code,int time_out)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = key_code;
|
|
args[1] = time_out;
|
|
|
|
result = obj.InvokeMember("WaitKey", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetMemoryHwndAsProcessId(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("SetMemoryHwndAsProcessId", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableShareDict(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableShareDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string EnumProcess(string name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = name;
|
|
|
|
result = obj.InvokeMember("EnumProcess", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int Is64Bit()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("Is64Bit", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string ExecuteCmd(string cmd,string current_dir,int time_out)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = cmd;
|
|
args[1] = current_dir;
|
|
args[2] = time_out;
|
|
|
|
result = obj.InvokeMember("ExecuteCmd", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindStrEx(int x1,int y1,int x2,int y2,string str,string color,double sim)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStrEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int WriteData(int hwnd,string addr,string data)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = data;
|
|
|
|
result = obj.InvokeMember("WriteData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FaqCancel()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("FaqCancel", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CreateFoobarCustom(int hwnd,int x,int y,string pic,string trans_color,double sim)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
args[3] = pic;
|
|
args[4] = trans_color;
|
|
args[5] = sim;
|
|
|
|
result = obj.InvokeMember("CreateFoobarCustom", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindMultiColorEx(int x1,int y1,int x2,int y2,string first_color,string offset_color,double sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = first_color;
|
|
args[5] = offset_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindMultiColorEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string EnumWindowByProcessId(int pid,string title,string class_name,int filter)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = pid;
|
|
args[1] = title;
|
|
args[2] = class_name;
|
|
args[3] = filter;
|
|
|
|
result = obj.InvokeMember("EnumWindowByProcessId", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public long GetModuleBaseAddr(int hwnd,string module_name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = module_name;
|
|
|
|
result = obj.InvokeMember("GetModuleBaseAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return Convert.ToInt64(result);
|
|
}
|
|
|
|
public string GetNetTime()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetNetTime", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int EnableBind(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableBind", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableKeypadSync(int en,int time_out)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = en;
|
|
args[1] = time_out;
|
|
|
|
result = obj.InvokeMember("EnableKeypadSync", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LockDisplay(int locks)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = locks;
|
|
|
|
result = obj.InvokeMember("LockDisplay", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public float ReadFloatAddr(int hwnd,long addr)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
|
|
result = obj.InvokeMember("ReadFloatAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (float)result;
|
|
}
|
|
|
|
public int EnableMouseAccuracy(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableMouseAccuracy", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FaqCapture(int x1,int y1,int x2,int y2,int quality,int delay,int time)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = quality;
|
|
args[5] = delay;
|
|
args[6] = time;
|
|
|
|
result = obj.InvokeMember("FaqCapture", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LoadAiMemory(int addr,int size)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = addr;
|
|
args[1] = size;
|
|
|
|
result = obj.InvokeMember("LoadAiMemory", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarTextRect(int hwnd,int x,int y,int w,int h)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
args[3] = w;
|
|
args[4] = h;
|
|
|
|
result = obj.InvokeMember("FoobarTextRect", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetColor(int x,int y)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = x;
|
|
args[1] = y;
|
|
|
|
result = obj.InvokeMember("GetColor", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SendCommand(string cmd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = cmd;
|
|
|
|
result = obj.InvokeMember("SendCommand", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetResultCount(string str)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = str;
|
|
|
|
result = obj.InvokeMember("GetResultCount", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetDisplayInput(string mode)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = mode;
|
|
|
|
result = obj.InvokeMember("SetDisplayInput", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindStringEx(int hwnd,string addr_range,string string_value,int tpe,int steps,int multi_thread,int mode)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = string_value;
|
|
args[3] = tpe;
|
|
args[4] = steps;
|
|
args[5] = multi_thread;
|
|
args[6] = mode;
|
|
|
|
result = obj.InvokeMember("FindStringEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetMemoryFindResultToFile(string file_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = file_name;
|
|
|
|
result = obj.InvokeMember("SetMemoryFindResultToFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetWordResultStr(string str,int index)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = str;
|
|
args[1] = index;
|
|
|
|
result = obj.InvokeMember("GetWordResultStr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int EnableKeypadPatch(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableKeypadPatch", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetDictMem(int index,int addr,int size)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = addr;
|
|
args[2] = size;
|
|
|
|
result = obj.InvokeMember("SetDictMem", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetFindPicMultithreadLimit(int limit)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = limit;
|
|
|
|
result = obj.InvokeMember("SetFindPicMultithreadLimit", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetMac()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetMac", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int UnLoadDriver()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("UnLoadDriver", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteIntAddr(int hwnd,long addr,int tpe,long v)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = tpe;
|
|
args[3] = v;
|
|
|
|
result = obj.InvokeMember("WriteIntAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetEnv(int index,string name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = name;
|
|
|
|
result = obj.InvokeMember("GetEnv", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetMouseDelay(string tpe,int delay)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = tpe;
|
|
args[1] = delay;
|
|
|
|
result = obj.InvokeMember("SetMouseDelay", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetOsType()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetOsType", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindShapeEx(int x1,int y1,int x2,int y2,string offset_color,double sim,int dir)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = offset_color;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("FindShapeEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int CaptureJpg(int x1,int y1,int x2,int y2,string file_name,int quality)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = file_name;
|
|
args[5] = quality;
|
|
|
|
result = obj.InvokeMember("CaptureJpg", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int Capture(int x1,int y1,int x2,int y2,string file_name)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = file_name;
|
|
|
|
result = obj.InvokeMember("Capture", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string ExcludePos(string all_pos,int tpe,int x1,int y1,int x2,int y2)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = all_pos;
|
|
args[1] = tpe;
|
|
args[2] = x1;
|
|
args[3] = y1;
|
|
args[4] = x2;
|
|
args[5] = y2;
|
|
|
|
result = obj.InvokeMember("ExcludePos", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int DisablePowerSave()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("DisablePowerSave", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetNetTimeSafe()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetNetTimeSafe", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FindPicMem(int x1,int y1,int x2,int y2,string pic_info,string delta_color,double sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[10];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(10);
|
|
mods[0][8] = true;
|
|
mods[0][9] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_info;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicMem", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[8];
|
|
y = (int)args[9];
|
|
return (int)result;
|
|
}
|
|
|
|
public string EnumWindowByProcess(string process_name,string title,string class_name,int filter)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = process_name;
|
|
args[1] = title;
|
|
args[2] = class_name;
|
|
args[3] = filter;
|
|
|
|
result = obj.InvokeMember("EnumWindowByProcess", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int MiddleUp()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("MiddleUp", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetScreenData(int x1,int y1,int x2,int y2)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
|
|
result = obj.InvokeMember("GetScreenData", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetWordResultPos(string str,int index,out int x,out int y)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(4);
|
|
mods[0][2] = true;
|
|
mods[0][3] = true;
|
|
|
|
args[0] = str;
|
|
args[1] = index;
|
|
|
|
result = obj.InvokeMember("GetWordResultPos", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[2];
|
|
y = (int)args[3];
|
|
return (int)result;
|
|
}
|
|
|
|
public long AsmCall(int hwnd,int mode)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = mode;
|
|
|
|
result = obj.InvokeMember("AsmCall", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return Convert.ToInt64(result);
|
|
}
|
|
|
|
public string GetProcessInfo(int pid)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pid;
|
|
|
|
result = obj.InvokeMember("GetProcessInfo", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindPicSimMemE(int x1,int y1,int x2,int y2,string pic_info,string delta_color,int sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_info;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicSimMemE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string AiFindPicMemEx(int x1,int y1,int x2,int y2,string pic_info,double sim,int dir)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_info;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("AiFindPicMemEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int EnableFakeActive(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableFakeActive", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public long ReadIntAddr(int hwnd,long addr,int tpe)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = tpe;
|
|
|
|
result = obj.InvokeMember("ReadIntAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return Convert.ToInt64(result);
|
|
}
|
|
|
|
public string GetDir(int tpe)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = tpe;
|
|
|
|
result = obj.InvokeMember("GetDir", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string AiYoloSortsObjects(string objects,int height)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = objects;
|
|
args[1] = height;
|
|
|
|
result = obj.InvokeMember("AiYoloSortsObjects", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string EnumIniKey(string section,string file_name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = section;
|
|
args[1] = file_name;
|
|
|
|
result = obj.InvokeMember("EnumIniKey", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SendStringIme2(int hwnd,string str,int mode)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = str;
|
|
args[2] = mode;
|
|
|
|
result = obj.InvokeMember("SendStringIme2", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetScreenWidth()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetScreenWidth", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int KeyPressChar(string key_str)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = key_str;
|
|
|
|
result = obj.InvokeMember("KeyPressChar", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetWindowText(int hwnd,string text)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = text;
|
|
|
|
result = obj.InvokeMember("SetWindowText", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EncodeFile(string file_name,string pwd)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = file_name;
|
|
args[1] = pwd;
|
|
|
|
result = obj.InvokeMember("EncodeFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int AddDict(int index,string dict_info)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = dict_info;
|
|
|
|
result = obj.InvokeMember("AddDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindPicS(int x1,int y1,int x2,int y2,string pic_name,string delta_color,double sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[10];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(10);
|
|
mods[0][8] = true;
|
|
mods[0][9] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicS", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[8];
|
|
y = (int)args[9];
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FindWindowByProcess(string process_name,string class_name,string title_name)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = process_name;
|
|
args[1] = class_name;
|
|
args[2] = title_name;
|
|
|
|
result = obj.InvokeMember("FindWindowByProcess", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetAveRGB(int x1,int y1,int x2,int y2)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
|
|
result = obj.InvokeMember("GetAveRGB", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int Reg(string code,string Ver)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = code;
|
|
args[1] = Ver;
|
|
|
|
result = obj.InvokeMember("Reg", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarDrawLine(int hwnd,int x1,int y1,int x2,int y2,string color,int style,int width)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x1;
|
|
args[2] = y1;
|
|
args[3] = x2;
|
|
args[4] = y2;
|
|
args[5] = color;
|
|
args[6] = style;
|
|
args[7] = width;
|
|
|
|
result = obj.InvokeMember("FoobarDrawLine", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteFloatAddr(int hwnd,long addr,float v)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = v;
|
|
|
|
result = obj.InvokeMember("WriteFloatAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int ActiveInputMethod(int hwnd,string id)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = id;
|
|
|
|
result = obj.InvokeMember("ActiveInputMethod", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindPicMemE(int x1,int y1,int x2,int y2,string pic_info,string delta_color,double sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_info;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicMemE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FaqIsPosted()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("FaqIsPosted", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteFloat(int hwnd,string addr,float v)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = v;
|
|
|
|
result = obj.InvokeMember("WriteFloat", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int IsFileExist(string file_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = file_name;
|
|
|
|
result = obj.InvokeMember("IsFileExist", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int StrStr(string s,string str)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = s;
|
|
args[1] = str;
|
|
|
|
result = obj.InvokeMember("StrStr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string RGB2BGR(string rgb_color)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = rgb_color;
|
|
|
|
result = obj.InvokeMember("RGB2BGR", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int LoadAi(string file_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = file_name;
|
|
|
|
result = obj.InvokeMember("LoadAi", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetExcludeRegion(int tpe,string info)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = tpe;
|
|
args[1] = info;
|
|
|
|
result = obj.InvokeMember("SetExcludeRegion", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetClientRect(int hwnd,out int x1,out int y1,out int x2,out int y2)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(5);
|
|
mods[0][1] = true;
|
|
mods[0][2] = true;
|
|
mods[0][3] = true;
|
|
mods[0][4] = true;
|
|
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("GetClientRect", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x1 = (int)args[1];
|
|
y1 = (int)args[2];
|
|
x2 = (int)args[3];
|
|
y2 = (int)args[4];
|
|
return (int)result;
|
|
}
|
|
|
|
public int VirtualFreeEx(int hwnd,long addr)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
|
|
result = obj.InvokeMember("VirtualFreeEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetCpuType()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetCpuType", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarSetFont(int hwnd,string font_name,int size,int flag)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = font_name;
|
|
args[2] = size;
|
|
args[3] = flag;
|
|
|
|
result = obj.InvokeMember("FoobarSetFont", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LeftDown()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("LeftDown", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetExactOcr(int exact_ocr)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = exact_ocr;
|
|
|
|
result = obj.InvokeMember("SetExactOcr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetSystemInfo(string tpe,int method)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = tpe;
|
|
args[1] = method;
|
|
|
|
result = obj.InvokeMember("GetSystemInfo", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetWindowState(int hwnd,int flag)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = flag;
|
|
|
|
result = obj.InvokeMember("SetWindowState", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteIniPwd(string section,string key,string v,string file_name,string pwd)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = section;
|
|
args[1] = key;
|
|
args[2] = v;
|
|
args[3] = file_name;
|
|
args[4] = pwd;
|
|
|
|
result = obj.InvokeMember("WriteIniPwd", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DmGuardLoadCustom(string tpe,string path)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = tpe;
|
|
args[1] = path;
|
|
|
|
result = obj.InvokeMember("DmGuardLoadCustom", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public double ReadDouble(int hwnd,string addr)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
|
|
result = obj.InvokeMember("ReadDouble", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (double)result;
|
|
}
|
|
|
|
public string FindMultiColorE(int x1,int y1,int x2,int y2,string first_color,string offset_color,double sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = first_color;
|
|
args[5] = offset_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindMultiColorE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetBasePath()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetBasePath", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindStrE(int x1,int y1,int x2,int y2,string str,string color,double sim)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStrE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetShowAsmErrorMsg(int show)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = show;
|
|
|
|
result = obj.InvokeMember("SetShowAsmErrorMsg", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string SelectFile()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("SelectFile", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public long VirtualAllocEx(int hwnd,long addr,int size,int tpe)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = size;
|
|
args[3] = tpe;
|
|
|
|
result = obj.InvokeMember("VirtualAllocEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return Convert.ToInt64(result);
|
|
}
|
|
|
|
public int SetExportDict(int index,string dict_name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = dict_name;
|
|
|
|
result = obj.InvokeMember("SetExportDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int AsmAdd(string asm_ins)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = asm_ins;
|
|
|
|
result = obj.InvokeMember("AsmAdd", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string AiYoloObjectsToString(string objects)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = objects;
|
|
|
|
result = obj.InvokeMember("AiYoloObjectsToString", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int KeyPress(int vk)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = vk;
|
|
|
|
result = obj.InvokeMember("KeyPress", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindColorEx(int x1,int y1,int x2,int y2,string color,double sim,int dir)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("FindColorEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindShapeE(int x1,int y1,int x2,int y2,string offset_color,double sim,int dir)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = offset_color;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("FindShapeE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetDictPwd(string pwd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pwd;
|
|
|
|
result = obj.InvokeMember("SetDictPwd", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetDisplayDelay(int t)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = t;
|
|
|
|
result = obj.InvokeMember("SetDisplayDelay", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string ReadDataAddr(int hwnd,long addr,int length)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = length;
|
|
|
|
result = obj.InvokeMember("ReadDataAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetWindowRect(int hwnd,out int x1,out int y1,out int x2,out int y2)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(5);
|
|
mods[0][1] = true;
|
|
mods[0][2] = true;
|
|
mods[0][3] = true;
|
|
mods[0][4] = true;
|
|
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("GetWindowRect", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x1 = (int)args[1];
|
|
y1 = (int)args[2];
|
|
x2 = (int)args[3];
|
|
y2 = (int)args[4];
|
|
return (int)result;
|
|
}
|
|
|
|
public int ReadDataAddrToBin(int hwnd,long addr,int length)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = length;
|
|
|
|
result = obj.InvokeMember("ReadDataAddrToBin", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetModuleSize(int hwnd,string module_name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = module_name;
|
|
|
|
result = obj.InvokeMember("GetModuleSize", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetEnv(int index,string name,string value)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = index;
|
|
args[1] = name;
|
|
args[2] = value;
|
|
|
|
result = obj.InvokeMember("SetEnv", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindPicSimMem(int x1,int y1,int x2,int y2,string pic_info,string delta_color,int sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[10];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(10);
|
|
mods[0][8] = true;
|
|
mods[0][9] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_info;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicSimMem", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[8];
|
|
y = (int)args[9];
|
|
return (int)result;
|
|
}
|
|
|
|
public string EnumIniSection(string file_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = file_name;
|
|
|
|
result = obj.InvokeMember("EnumIniSection", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetMachineCodeNoMac()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetMachineCodeNoMac", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FindPic(int x1,int y1,int x2,int y2,string pic_name,string delta_color,double sim,int dir,out int x,out int y)
|
|
{
|
|
object[] args = new object[10];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(10);
|
|
mods[0][8] = true;
|
|
mods[0][9] = true;
|
|
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPic", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
x = (int)args[8];
|
|
y = (int)args[9];
|
|
return (int)result;
|
|
}
|
|
|
|
public int FaqCaptureFromFile(int x1,int y1,int x2,int y2,string file_name,int quality)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = file_name;
|
|
args[5] = quality;
|
|
|
|
result = obj.InvokeMember("FaqCaptureFromFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CapturePng(int x1,int y1,int x2,int y2,string file_name)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = file_name;
|
|
|
|
result = obj.InvokeMember("CapturePng", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string EnumIniSectionPwd(string file_name,string pwd)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = file_name;
|
|
args[1] = pwd;
|
|
|
|
result = obj.InvokeMember("EnumIniSectionPwd", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetDiskSerial(int index)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = index;
|
|
|
|
result = obj.InvokeMember("GetDiskSerial", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int MoveR(int rx,int ry)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = rx;
|
|
args[1] = ry;
|
|
|
|
result = obj.InvokeMember("MoveR", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindWindow(string class_name,string title_name)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = class_name;
|
|
args[1] = title_name;
|
|
|
|
result = obj.InvokeMember("FindWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DeleteFolder(string folder_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = folder_name;
|
|
|
|
result = obj.InvokeMember("DeleteFolder", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LockInput(int locks)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = locks;
|
|
|
|
result = obj.InvokeMember("LockInput", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int MoveTo(int x,int y)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = x;
|
|
args[1] = y;
|
|
|
|
result = obj.InvokeMember("MoveTo", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int ReadDataToBin(int hwnd,string addr,int length)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = length;
|
|
|
|
result = obj.InvokeMember("ReadDataToBin", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteIni(string section,string key,string v,string file_name)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = section;
|
|
args[1] = key;
|
|
args[2] = v;
|
|
args[3] = file_name;
|
|
|
|
result = obj.InvokeMember("WriteIni", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DownCpu(int tpe,int rate)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = tpe;
|
|
args[1] = rate;
|
|
|
|
result = obj.InvokeMember("DownCpu", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int BindWindow(int hwnd,string display,string mouse,string keypad,int mode)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = display;
|
|
args[2] = mouse;
|
|
args[3] = keypad;
|
|
args[4] = mode;
|
|
|
|
result = obj.InvokeMember("BindWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetWordResultCount(string str)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = str;
|
|
|
|
result = obj.InvokeMember("GetWordResultCount", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteString(int hwnd,string addr,int tpe,string v)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = tpe;
|
|
args[3] = v;
|
|
|
|
result = obj.InvokeMember("WriteString", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int UnBindWindow()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("UnBindWindow", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public string EnumWindow(int parent,string title,string class_name,int filter)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = parent;
|
|
args[1] = title;
|
|
args[2] = class_name;
|
|
args[3] = filter;
|
|
|
|
result = obj.InvokeMember("EnumWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int ClearDict(int index)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = index;
|
|
|
|
result = obj.InvokeMember("ClearDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetParam64ToPointer()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("SetParam64ToPointer", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetForegroundWindow()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetForegroundWindow", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int RightUp()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("RightUp", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindWindowEx(int parent,string class_name,string title_name)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = parent;
|
|
args[1] = class_name;
|
|
args[2] = title_name;
|
|
|
|
result = obj.InvokeMember("FindWindowEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string SelectDirectory()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("SelectDirectory", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetUAC(int uac)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = uac;
|
|
|
|
result = obj.InvokeMember("SetUAC", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetDPI()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetDPI", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetForegroundFocus()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetForegroundFocus", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CmpColor(int x,int y,string color,double sim)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = x;
|
|
args[1] = y;
|
|
args[2] = color;
|
|
args[3] = sim;
|
|
|
|
result = obj.InvokeMember("CmpColor", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string ReadIniPwd(string section,string key,string file_name,string pwd)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = section;
|
|
args[1] = key;
|
|
args[2] = file_name;
|
|
args[3] = pwd;
|
|
|
|
result = obj.InvokeMember("ReadIniPwd", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string FindStrFastEx(int x1,int y1,int x2,int y2,string str,string color,double sim)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
|
|
result = obj.InvokeMember("FindStrFastEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int TerminateProcessTree(int pid)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = pid;
|
|
|
|
result = obj.InvokeMember("TerminateProcessTree", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarDrawPic(int hwnd,int x,int y,string pic,string trans_color)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
args[3] = pic;
|
|
args[4] = trans_color;
|
|
|
|
result = obj.InvokeMember("FoobarDrawPic", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableGetColorByCapture(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableGetColorByCapture", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string GetDiskModel(int index)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = index;
|
|
|
|
result = obj.InvokeMember("GetDiskModel", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetWordGap(int word_gap)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = word_gap;
|
|
|
|
result = obj.InvokeMember("SetWordGap", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarSetTrans(int hwnd,int trans,string color,double sim)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = trans;
|
|
args[2] = color;
|
|
args[3] = sim;
|
|
|
|
result = obj.InvokeMember("FoobarSetTrans", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string AiFindPicEx(int x1,int y1,int x2,int y2,string pic_name,double sim,int dir)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = sim;
|
|
args[6] = dir;
|
|
|
|
result = obj.InvokeMember("AiFindPicEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string EnumWindowSuper(string spec1,int flag1,int type1,string spec2,int flag2,int type2,int sort)
|
|
{
|
|
object[] args = new object[7];
|
|
object result;
|
|
args[0] = spec1;
|
|
args[1] = flag1;
|
|
args[2] = type1;
|
|
args[3] = spec2;
|
|
args[4] = flag2;
|
|
args[5] = type2;
|
|
args[6] = sort;
|
|
|
|
result = obj.InvokeMember("EnumWindowSuper", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetCommandLine(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("GetCommandLine", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int AiYoloDetectObjectsToFile(int x1,int y1,int x2,int y2,double prob,double iou,string file_name,int mode)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = prob;
|
|
args[5] = iou;
|
|
args[6] = file_name;
|
|
args[7] = mode;
|
|
|
|
result = obj.InvokeMember("AiYoloDetectObjectsToFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DownloadFile(string url,string save_file,int timeout)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = url;
|
|
args[1] = save_file;
|
|
args[2] = timeout;
|
|
|
|
result = obj.InvokeMember("DownloadFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarLock(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("FoobarLock", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int GetWindowState(int hwnd,int flag)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = flag;
|
|
|
|
result = obj.InvokeMember("GetWindowState", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteStringAddr(int hwnd,long addr,int tpe,string v)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = tpe;
|
|
args[3] = v;
|
|
|
|
result = obj.InvokeMember("WriteStringAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int MoveWindow(int hwnd,int x,int y)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
|
|
result = obj.InvokeMember("MoveWindow", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int DisableFontSmooth()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("DisableFontSmooth", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int RegEx(string code,string Ver,string ip)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = code;
|
|
args[1] = Ver;
|
|
args[2] = ip;
|
|
|
|
result = obj.InvokeMember("RegEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int CreateFolder(string folder_name)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = folder_name;
|
|
|
|
result = obj.InvokeMember("CreateFolder", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int FoobarTextLineGap(int hwnd,int gap)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = gap;
|
|
|
|
result = obj.InvokeMember("FoobarTextLineGap", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindPicSimE(int x1,int y1,int x2,int y2,string pic_name,string delta_color,int sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicSimE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int WriteDataAddrFromBin(int hwnd,long addr,int data,int length)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = data;
|
|
args[3] = length;
|
|
|
|
result = obj.InvokeMember("WriteDataAddrFromBin", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string Hex64(long v)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = v;
|
|
|
|
result = obj.InvokeMember("Hex64", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string OcrEx(int x1,int y1,int x2,int y2,string color,double sim)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
|
|
result = obj.InvokeMember("OcrEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetWordsNoDict(int x1,int y1,int x2,int y2,string color)
|
|
{
|
|
object[] args = new object[5];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
|
|
result = obj.InvokeMember("GetWordsNoDict", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FoobarStartGif(int hwnd,int x,int y,string pic_name,int repeat_limit,int delay)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = x;
|
|
args[2] = y;
|
|
args[3] = pic_name;
|
|
args[4] = repeat_limit;
|
|
args[5] = delay;
|
|
|
|
result = obj.InvokeMember("FoobarStartGif", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteDouble(int hwnd,string addr,double v)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = v;
|
|
|
|
result = obj.InvokeMember("WriteDouble", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindStrWithFontEx(int x1,int y1,int x2,int y2,string str,string color,double sim,string font_name,int font_size,int flag)
|
|
{
|
|
object[] args = new object[10];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = str;
|
|
args[5] = color;
|
|
args[6] = sim;
|
|
args[7] = font_name;
|
|
args[8] = font_size;
|
|
args[9] = flag;
|
|
|
|
result = obj.InvokeMember("FindStrWithFontEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int WriteFile(string file_name,string content)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = file_name;
|
|
args[1] = content;
|
|
|
|
result = obj.InvokeMember("WriteFile", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindPicEx(int x1,int y1,int x2,int y2,string pic_name,string delta_color,double sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public string GetWindowClass(int hwnd)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("GetWindowClass", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetClientSize(int hwnd,out int width,out int height)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
ParameterModifier[] mods = new ParameterModifier[1];
|
|
|
|
mods[0] = new ParameterModifier(3);
|
|
mods[0][1] = true;
|
|
mods[0][2] = true;
|
|
|
|
args[0] = hwnd;
|
|
|
|
result = obj.InvokeMember("GetClientSize", BindingFlags.InvokeMethod, null, obj_object, args, mods, null, null);
|
|
width = (int)args[1];
|
|
height = (int)args[2];
|
|
return (int)result;
|
|
}
|
|
|
|
public int FindWindowSuper(string spec1,int flag1,int type1,string spec2,int flag2,int type2)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = spec1;
|
|
args[1] = flag1;
|
|
args[2] = type1;
|
|
args[3] = spec2;
|
|
args[4] = flag2;
|
|
args[5] = type2;
|
|
|
|
result = obj.InvokeMember("FindWindowSuper", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindNearestPos(string all_pos,int tpe,int x,int y)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = all_pos;
|
|
args[1] = tpe;
|
|
args[2] = x;
|
|
args[3] = y;
|
|
|
|
result = obj.InvokeMember("FindNearestPos", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int SetExitThread(int mode)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = mode;
|
|
|
|
result = obj.InvokeMember("SetExitThread", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int SetSimMode(int mode)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = mode;
|
|
|
|
result = obj.InvokeMember("SetSimMode", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int EnableKeypadMsg(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableKeypadMsg", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindDataEx(int hwnd,string addr_range,string data,int steps,int multi_thread,int mode)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr_range;
|
|
args[2] = data;
|
|
args[3] = steps;
|
|
args[4] = multi_thread;
|
|
args[5] = mode;
|
|
|
|
result = obj.InvokeMember("FindDataEx", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int EnableFindPicMultithread(int en)
|
|
{
|
|
object[] args = new object[1];
|
|
object result;
|
|
args[0] = en;
|
|
|
|
result = obj.InvokeMember("EnableFindPicMultithread", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int LeftUp()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("LeftUp", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int RegNoMac(string code,string Ver)
|
|
{
|
|
object[] args = new object[2];
|
|
object result;
|
|
args[0] = code;
|
|
args[1] = Ver;
|
|
|
|
result = obj.InvokeMember("RegNoMac", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteDataAddr(int hwnd,long addr,string data)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = data;
|
|
|
|
result = obj.InvokeMember("WriteDataAddr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string FindPicE(int x1,int y1,int x2,int y2,string pic_name,string delta_color,double sim,int dir)
|
|
{
|
|
object[] args = new object[8];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = pic_name;
|
|
args[5] = delta_color;
|
|
args[6] = sim;
|
|
args[7] = dir;
|
|
|
|
result = obj.InvokeMember("FindPicE", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int GetLastError()
|
|
{
|
|
object result;
|
|
result = obj.InvokeMember("GetLastError", BindingFlags.InvokeMethod, null, obj_object, null);
|
|
return (int)result;
|
|
}
|
|
|
|
public int WriteDataFromBin(int hwnd,string addr,int data,int length)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = data;
|
|
args[3] = length;
|
|
|
|
result = obj.InvokeMember("WriteDataFromBin", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public string Ocr(int x1,int y1,int x2,int y2,string color,double sim)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
|
|
result = obj.InvokeMember("Ocr", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return result.ToString();
|
|
}
|
|
|
|
public int FindMulColor(int x1,int y1,int x2,int y2,string color,double sim)
|
|
{
|
|
object[] args = new object[6];
|
|
object result;
|
|
args[0] = x1;
|
|
args[1] = y1;
|
|
args[2] = x2;
|
|
args[3] = y2;
|
|
args[4] = color;
|
|
args[5] = sim;
|
|
|
|
result = obj.InvokeMember("FindMulColor", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
public long ReadInt(int hwnd,string addr,int tpe)
|
|
{
|
|
object[] args = new object[3];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = addr;
|
|
args[2] = tpe;
|
|
|
|
result = obj.InvokeMember("ReadInt", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return Convert.ToInt64(result);
|
|
}
|
|
|
|
public int FoobarSetSave(int hwnd,string file_name,int en,string header)
|
|
{
|
|
object[] args = new object[4];
|
|
object result;
|
|
args[0] = hwnd;
|
|
args[1] = file_name;
|
|
args[2] = en;
|
|
args[3] = header;
|
|
|
|
result = obj.InvokeMember("FoobarSetSave", BindingFlags.InvokeMethod, null, obj_object, args);
|
|
return (int)result;
|
|
}
|
|
|
|
}
|