diff --git a/demo/obj.cs b/demo/obj.cs new file mode 100644 index 0000000..4baec77 --- /dev/null +++ b/demo/obj.cs @@ -0,0 +1,5118 @@ +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; + } + +} diff --git a/luqj-damo/libs/DmReg.dll b/luqj-damo/libs/DmReg.dll new file mode 100644 index 0000000..2bfb7ac Binary files /dev/null and b/luqj-damo/libs/DmReg.dll differ diff --git a/luqj-damo/libs/jacob-1.21-x64.dll b/luqj-damo/libs/jacob-1.21-x64.dll new file mode 100644 index 0000000..c3da072 Binary files /dev/null and b/luqj-damo/libs/jacob-1.21-x64.dll differ diff --git a/luqj-damo/libs/jacob-1.21-x86.dll b/luqj-damo/libs/jacob-1.21-x86.dll new file mode 100644 index 0000000..0858364 Binary files /dev/null and b/luqj-damo/libs/jacob-1.21-x86.dll differ diff --git a/luqj-damo/libs/jacob.jar b/luqj-damo/libs/jacob.jar new file mode 100644 index 0000000..54549aa Binary files /dev/null and b/luqj-damo/libs/jacob.jar differ diff --git a/luqj-damo/pom.xml b/luqj-damo/pom.xml new file mode 100644 index 0000000..3dd2612 --- /dev/null +++ b/luqj-damo/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + + com.ruoyi + ruoyi + 3.4.0 + + + luqj-damo + jar + + luqj-damo + http://maven.apache.org + + + UTF-8 + + + + + net.java.dev.jna + jna + 5.13.0 + + + net.java.dev.jna + jna-platform + 5.13.0 + + + com.jacob + jacob + 1.21 + + + diff --git a/luqj-damo/src/main/java/com/luqj/damo/obj/DmSoft.java b/luqj-damo/src/main/java/com/luqj/damo/obj/DmSoft.java new file mode 100644 index 0000000..bd17a35 --- /dev/null +++ b/luqj-damo/src/main/java/com/luqj/damo/obj/DmSoft.java @@ -0,0 +1,1767 @@ +package com.luqj.damo.obj; + +import com.jacob.activeX.ActiveXComponent; +import com.jacob.com.Dispatch; +import com.jacob.com.Variant; + +public class DmSoft { + private ActiveXComponent dm = null; + + public DmSoft() { + dm = new ActiveXComponent("dm.dmsoft"); + } + + public void releaseObj() { + if (dm != null) { + dm.safeRelease(); + dm = null; + } + } + + public int setRowGapNoDict(int rowGap) { + return Dispatch.call(dm, "SetRowGapNoDict", rowGap).getInt(); + } + + public int enableMouseSync(int en, int timeOut) { + return Dispatch.call(dm, "EnableMouseSync", en, timeOut).getInt(); + } + + public String getCursorShapeEx(int tpe) { + return Dispatch.call(dm, "GetCursorShapeEx", tpe).toString(); + } + + public int getTime() { + return Dispatch.call(dm, "GetTime").getInt(); + } + + public int checkUAC() { + return Dispatch.call(dm, "CheckUAC").getInt(); + } + + public int enableRealMouse(int en, int mousedelay, int mousestep) { + return Dispatch.call(dm, "EnableRealMouse", en, mousedelay, mousestep).getInt(); + } + + public String readStringAddr(int hwnd, long addr, int tpe, int length) { + return Dispatch.call(dm, "ReadStringAddr", hwnd, addr, tpe, length).toString(); + } + + public int findShape(int x1, int y1, int x2, int y2, String offsetColor, double sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindShape", x1, y1, x2, y2, offsetColor, sim, dir, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public int getWindow(int hwnd, int flag) { + return Dispatch.call(dm, "GetWindow", hwnd, flag).getInt(); + } + + public String getPicSize(String picName) { + return Dispatch.call(dm, "GetPicSize", picName).toString(); + } + + public String getWindowProcessPath(int hwnd) { + return Dispatch.call(dm, "GetWindowProcessPath", hwnd).toString(); + } + + public int exitOs(int tpe) { + return Dispatch.call(dm, "ExitOs", tpe).getInt(); + } + + public int leftClick() { + return Dispatch.call(dm, "LeftClick").getInt(); + } + + public long asmCallEx(int hwnd, int mode, String baseAddr) { + return Dispatch.call(dm, "AsmCallEx", hwnd, mode, baseAddr).getLong(); + } + + public int moveFile(String srcFile, String dstFile) { + return Dispatch.call(dm, "MoveFile", srcFile, dstFile).getInt(); + } + + public int foobarFillRect(int hwnd, int x1, int y1, int x2, int y2, String color) { + return Dispatch.call(dm, "FoobarFillRect", hwnd, x1, y1, x2, y2, color).getInt(); + } + + public int setWindowSize(int hwnd, int width, int height) { + return Dispatch.call(dm, "SetWindowSize", hwnd, width, height).getInt(); + } + + public int sendStringIme(String str) { + return Dispatch.call(dm, "SendStringIme", str).getInt(); + } + + public int isBind(int hwnd) { + return Dispatch.call(dm, "IsBind", hwnd).getInt(); + } + + public String bgr2RGB(String bgrColor) { + return Dispatch.call(dm, "BGR2RGB", bgrColor).toString(); + } + + public int rightDown() { + return Dispatch.call(dm, "RightDown").getInt(); + } + + public int enterCri() { + return Dispatch.call(dm, "EnterCri").getInt(); + } + + public int setClipboard(String data) { + return Dispatch.call(dm, "SetClipboard", data).getInt(); + } + + public int getScreenDepth() { + return Dispatch.call(dm, "GetScreenDepth").getInt(); + } + + public int getBindWindow() { + return Dispatch.call(dm, "GetBindWindow").getInt(); + } + + public int beep(int fre, int delay) { + return Dispatch.call(dm, "Beep", fre, delay).getInt(); + } + + public String findStrFastS(int x1, int y1, int x2, int y2, String str, String color, double sim, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + String result = Dispatch.call(dm, "FindStrFastS", x1, y1, x2, y2, str, color, sim, xVar, yVar).toString(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public long getRemoteApiAddress(int hwnd, long baseAddr, String funName) { + return Dispatch.call(dm, "GetRemoteApiAddress", hwnd, baseAddr, funName).getLong(); + } + + public String getMachineCode() { + return Dispatch.call(dm, "GetMachineCode").toString(); + } + + public int setPath(String path) { + return Dispatch.call(dm, "SetPath", path).getInt(); + } + + public int getNowDict() { + return Dispatch.call(dm, "GetNowDict").getInt(); + } + + public String enumIniKeyPwd(String section, String fileName, String pwd) { + return Dispatch.call(dm, "EnumIniKeyPwd", section, fileName, pwd).toString(); + } + + public int deleteFile(String fileName) { + return Dispatch.call(dm, "DeleteFile", fileName).getInt(); + } + + public int regExNoMac(String code, String Ver, String ip) { + return Dispatch.call(dm, "RegExNoMac", code, Ver, ip).getInt(); + } + + public int getFileLength(String fileName) { + return Dispatch.call(dm, "GetFileLength", fileName).getInt(); + } + + public int initCri() { + return Dispatch.call(dm, "InitCri").getInt(); + } + + public String findColorE(int x1, int y1, int x2, int y2, String color, double sim, int dir) { + return Dispatch.call(dm, "FindColorE", x1, y1, x2, y2, color, sim, dir).toString(); + } + + public int setMinRowGap(int rowGap) { + return Dispatch.call(dm, "SetMinRowGap", rowGap).getInt(); + } + + public int getMemoryUsage() { + return Dispatch.call(dm, "GetMemoryUsage").getInt(); + } + + public int aiFindPic(int x1, int y1, int x2, int y2, String picName, double sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "AiFindPic", x1, y1, x2, y2, picName, sim, dir, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public String readFile(String fileName) { + return Dispatch.call(dm, "ReadFile", fileName).toString(); + } + + public int captureGif(int x1, int y1, int x2, int y2, String fileName, int delay, int time) { + return Dispatch.call(dm, "CaptureGif", x1, y1, x2, y2, fileName, delay, time).getInt(); + } + + public int enableMouseMsg(int en) { + return Dispatch.call(dm, "EnableMouseMsg", en).getInt(); + } + + public int setScreen(int width, int height, int depth) { + return Dispatch.call(dm, "SetScreen", width, height, depth).getInt(); + } + + public int faqRelease(int handle) { + return Dispatch.call(dm, "FaqRelease", handle).getInt(); + } + + public int aiYoloFreeModel(int index) { + return Dispatch.call(dm, "AiYoloFreeModel", index).getInt(); + } + + public int dmGuardExtract(String tpe, String path) { + return Dispatch.call(dm, "DmGuardExtract", tpe, path).getInt(); + } + + public int getFps() { + return Dispatch.call(dm, "GetFps").getInt(); + } + + public int findStr(int x1, int y1, int x2, int y2, String str, String color, double sim, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindStr", x1, y1, x2, y2, str, color, sim, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public String getDisplayInfo() { + return Dispatch.call(dm, "GetDisplayInfo").toString(); + } + + public int bindWindowEx(int hwnd, String display, String mouse, String keypad, String publicDesc, int mode) { + return Dispatch.call(dm, "BindWindowEx", hwnd, display, mouse, keypad, publicDesc, mode).getInt(); + } + + public int aiFindPicMem(int x1, int y1, int x2, int y2, String picInfo, double sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "AiFindPicMem", x1, y1, x2, y2, picInfo, sim, dir, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public String matchPicName(String picName) { + return Dispatch.call(dm, "MatchPicName", picName).toString(); + } + + public double readDoubleAddr(int hwnd, long addr) { + return Dispatch.call(dm, "ReadDoubleAddr", hwnd, addr).getDouble(); + } + + public int disableScreenSave() { + return Dispatch.call(dm, "DisableScreenSave").getInt(); + } + + public int int64ToInt32(long v) { + return Dispatch.call(dm, "Int64ToInt32", v).getInt(); + } + + public int useDict(int index) { + return Dispatch.call(dm, "UseDict", index).getInt(); + } + + public int delays(int minS, int maxS) { + return Dispatch.call(dm, "Delays", minS, maxS).getInt(); + } + + public String ocrInFile(int x1, int y1, int x2, int y2, String picName, String color, double sim) { + return Dispatch.call(dm, "OcrInFile", x1, y1, x2, y2, picName, color, sim).toString(); + } + + public int setLocale() { + return Dispatch.call(dm, "SetLocale").getInt(); + } + + public String getColorHSV(int x, int y) { + return Dispatch.call(dm, "GetColorHSV", x, y).toString(); + } + + public String readIni(String section, String key, String fileName) { + return Dispatch.call(dm, "ReadIni", section, key, fileName).toString(); + } + + public int setInputDm(int inputDm, int rx, int ry) { + return Dispatch.call(dm, "SetInputDm", inputDm, rx, ry).getInt(); + } + + public String findColorBlockEx(int x1, int y1, int x2, int y2, String color, double sim, int count, int width, int height) { + return Dispatch.call(dm, "FindColorBlockEx", x1, y1, x2, y2, color, sim, count, width, height).toString(); + } + + public int checkInputMethod(int hwnd, String id) { + return Dispatch.call(dm, "CheckInputMethod", hwnd, id).getInt(); + } + + public int delay(int mis) { + return Dispatch.call(dm, "delay", mis).getInt(); + } + + public int asmClear() { + return Dispatch.call(dm, "AsmClear").getInt(); + } + + public int findWindowByProcessId(int processId, String className, String titleName) { + return Dispatch.call(dm, "FindWindowByProcessId", processId, className, titleName).getInt(); + } + + public int speedNormalGraphic(int en) { + return Dispatch.call(dm, "SpeedNormalGraphic", en).getInt(); + } + + public int play(String fileName) { + return Dispatch.call(dm, "Play", fileName).getInt(); + } + + public int sendString2(int hwnd, String str) { + return Dispatch.call(dm, "SendString2", hwnd, str).getInt(); + } + + public int findColorBlock(int x1, int y1, int x2, int y2, String color, double sim, int count, int width, int height, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindColorBlock", x1, y1, x2, y2, color, sim, count, width, height, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public int getDmCount() { + return Dispatch.call(dm, "GetDmCount").getInt(); + } + + public String sortPosDistance(String allPos, int tpe, int x, int y) { + return Dispatch.call(dm, "SortPosDistance", allPos, tpe, x, y).toString(); + } + + public String doubleToData(double doubleValue) { + return Dispatch.call(dm, "DoubleToData", doubleValue).toString(); + } + + public int setAero(int en) { + return Dispatch.call(dm, "SetAero", en).getInt(); + } + + public String virtualQueryEx(int hwnd, long addr, int pmbi) { + return Dispatch.call(dm, "VirtualQueryEx", hwnd, addr, pmbi).toString(); + } + + public String findData(int hwnd, String addrRange, String data) { + return Dispatch.call(dm, "FindData", hwnd, addrRange, data).toString(); + } + + public int aiYoloSetModelMemory(int index, int addr, int size, String pwd) { + return Dispatch.call(dm, "AiYoloSetModelMemory", index, addr, size, pwd).getInt(); + } + + public int writeInt(int hwnd, String addr, int tpe, long v) { + return Dispatch.call(dm, "WriteInt", hwnd, addr, tpe, v).getInt(); + } + + public int sendPaste(int hwnd) { + return Dispatch.call(dm, "SendPaste", hwnd).getInt(); + } + + public int wheelUp() { + return Dispatch.call(dm, "WheelUp").getInt(); + } + + public int enableIme(int en) { + return Dispatch.call(dm, "EnableIme", en).getInt(); + } + + public int getID() { + return Dispatch.call(dm, "GetID").getInt(); + } + + public int getMouseSpeed() { + return Dispatch.call(dm, "GetMouseSpeed").getInt(); + } + + public int wheelDown() { + return Dispatch.call(dm, "WheelDown").getInt(); + } + + public int foobarPrintText(int hwnd, String text, String color) { + return Dispatch.call(dm, "FoobarPrintText", hwnd, text, color).getInt(); + } + + public int getSpecialWindow(int flag) { + return Dispatch.call(dm, "GetSpecialWindow", flag).getInt(); + } + + public int rightClick() { + return Dispatch.call(dm, "RightClick").getInt(); + } + + public int setShowErrorMsg(int show) { + return Dispatch.call(dm, "SetShowErrorMsg", show).getInt(); + } + + public int findMultiColor(int x1, int y1, int x2, int y2, String firstColor, String offsetColor, double sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindMultiColor", x1, y1, x2, y2, firstColor, offsetColor, sim, dir, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public int enableFontSmooth() { + return Dispatch.call(dm, "EnableFontSmooth").getInt(); + } + + public String getWords(int x1, int y1, int x2, int y2, String color, double sim) { + return Dispatch.call(dm, "GetWords", x1, y1, x2, y2, color, sim).toString(); + } + + public String getPath() { + return Dispatch.call(dm, "GetPath").toString(); + } + + public int getScreenHeight() { + return Dispatch.call(dm, "GetScreenHeight").getInt(); + } + + public int keyPressStr(String keyStr, int delay) { + return Dispatch.call(dm, "KeyPressStr", keyStr, delay).getInt(); + } + + public int createFoobarRoundRect(int hwnd, int x, int y, int w, int h, int rw, int rh) { + return Dispatch.call(dm, "CreateFoobarRoundRect", hwnd, x, y, w, h, rw, rh).getInt(); + } + + public int leftDoubleClick() { + return Dispatch.call(dm, "LeftDoubleClick").getInt(); + } + + public int sendString(int hwnd, String str) { + return Dispatch.call(dm, "SendString", hwnd, str).getInt(); + } + + public int findStrFast(int x1, int y1, int x2, int y2, String str, String color, double sim, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindStrFast", x1, y1, x2, y2, str, color, sim, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public int createFoobarEllipse(int hwnd, int x, int y, int w, int h) { + return Dispatch.call(dm, "CreateFoobarEllipse", hwnd, x, y, w, h).getInt(); + } + + public int setFindPicMultithreadCount(int count) { + return Dispatch.call(dm, "SetFindPicMultithreadCount", count).getInt(); + } + + public int foobarTextPrintDir(int hwnd, int dir) { + return Dispatch.call(dm, "FoobarTextPrintDir", hwnd, dir).getInt(); + } + + public String findStrS(int x1, int y1, int x2, int y2, String str, String color, double sim, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + String result = Dispatch.call(dm, "FindStrS", x1, y1, x2, y2, str, color, sim, xVar, yVar).toString(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public int setColGapNoDict(int colGap) { + return Dispatch.call(dm, "SetColGapNoDict", colGap).getInt(); + } + + public int runApp(String path, int mode) { + return Dispatch.call(dm, "RunApp", path, mode).getInt(); + } + + public int keyDown(int vk) { + return Dispatch.call(dm, "KeyDown", vk).getInt(); + } + + public int isFolderExist(String folder) { + return Dispatch.call(dm, "IsFolderExist", folder).getInt(); + } + + public int deleteIni(String section, String key, String fileName) { + return Dispatch.call(dm, "DeleteIni", section, key, fileName).getInt(); + } + + public int getColorNum(int x1, int y1, int x2, int y2, String color, double sim) { + return Dispatch.call(dm, "GetColorNum", x1, y1, x2, y2, color, sim).getInt(); + } + + public int freeProcessMemory(int hwnd) { + return Dispatch.call(dm, "FreeProcessMemory", hwnd).getInt(); + } + + public int findInputMethod(String id) { + return Dispatch.call(dm, "FindInputMethod", id).getInt(); + } + + public int delEnv(int index, String name) { + return Dispatch.call(dm, "DelEnv", index, name).getInt(); + } + + public int keyUpChar(String keyStr) { + return Dispatch.call(dm, "KeyUpChar", keyStr).getInt(); + } + + public int freeScreenData(int handle) { + return Dispatch.call(dm, "FreeScreenData", handle).getInt(); + } + + public String findPicSimMemEx(int x1, int y1, int x2, int y2, String picInfo, String deltaColor, int sim, int dir) { + return Dispatch.call(dm, "FindPicSimMemEx", x1, y1, x2, y2, picInfo, deltaColor, sim, dir).toString(); + } + + public int aiYoloDetectObjectsToDataBmp(int x1, int y1, int x2, int y2, double prob, double iou, int[] data, int[] size, int mode) { + Variant dataVar = new Variant(0, true); + Variant sizeVar = new Variant(0, true); + int result = Dispatch.call(dm, "AiYoloDetectObjectsToDataBmp", x1, y1, x2, y2, prob, iou, dataVar, sizeVar, mode).getInt(); + data[0] = dataVar.getInt(); + size[0] = sizeVar.getInt(); + return result; + } + + public int findColor(int x1, int y1, int x2, int y2, String color, double sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindColor", x1, y1, x2, y2, color, sim, dir, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public String findFloat(int hwnd, String addrRange, float floatValueMin, float floatValueMax) { + return Dispatch.call(dm, "FindFloat", hwnd, addrRange, floatValueMin, floatValueMax).toString(); + } + + public String getWindowTitle(int hwnd) { + return Dispatch.call(dm, "GetWindowTitle", hwnd).toString(); + } + + public String readString(int hwnd, String addr, int tpe, int length) { + return Dispatch.call(dm, "ReadString", hwnd, addr, tpe, length).toString(); + } + + public int leaveCri() { + return Dispatch.call(dm, "LeaveCri").getInt(); + } + + public int terminateProcess(int pid) { + return Dispatch.call(dm, "TerminateProcess", pid).getInt(); + } + + public int hackSpeed(double rate) { + return Dispatch.call(dm, "HackSpeed", rate).getInt(); + } + + public String dmGuardParams(String cmd, String subCmd, String param) { + return Dispatch.call(dm, "DmGuardParams", cmd, subCmd, param).toString(); + } + + public String findFloatEx(int hwnd, String addrRange, float floatValueMin, float floatValueMax, int steps, int multiThread, int mode) { + return Dispatch.call(dm, "FindFloatEx", hwnd, addrRange, floatValueMin, floatValueMax, steps, multiThread, mode).toString(); + } + + public int enableRealKeypad(int en) { + return Dispatch.call(dm, "EnableRealKeypad", en).getInt(); + } + + public int getMousePointWindow() { + return Dispatch.call(dm, "GetMousePointWindow").getInt(); + } + + public String faqFetch() { + return Dispatch.call(dm, "FaqFetch").toString(); + } + + public int enableSpeedDx(int en) { + return Dispatch.call(dm, "EnableSpeedDx", en).getInt(); + } + + public int switchBindWindow(int hwnd) { + return Dispatch.call(dm, "SwitchBindWindow", hwnd).getInt(); + } + + public int getCpuUsage() { + return Dispatch.call(dm, "GetCpuUsage").getInt(); + } + + public int findPicSim(int x1, int y1, int x2, int y2, String picName, String deltaColor, int sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindPicSim", x1, y1, x2, y2, picName, deltaColor, sim, dir, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public int findStrWithFont(int x1, int y1, int x2, int y2, String str, String color, double sim, String fontName, int fontSize, int flag, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindStrWithFont", x1, y1, x2, y2, str, color, sim, fontName, fontSize, flag, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public int enableDisplayDebug(int enableDebug) { + return Dispatch.call(dm, "EnableDisplayDebug", enableDebug).getInt(); + } + + public int middleClick() { + return Dispatch.call(dm, "MiddleClick").getInt(); + } + + public int setPicPwd(String pwd) { + return Dispatch.call(dm, "SetPicPwd", pwd).getInt(); + } + + public String floatToData(float floatValue) { + return Dispatch.call(dm, "FloatToData", floatValue).toString(); + } + + public String disAssemble(String asmCode, long baseAddr, int is64bit) { + return Dispatch.call(dm, "DisAssemble", asmCode, baseAddr, is64bit).toString(); + } + + public String findStrWithFontE(int x1, int y1, int x2, int y2, String str, String color, double sim, String fontName, int fontSize, int flag) { + return Dispatch.call(dm, "FindStrWithFontE", x1, y1, x2, y2, str, color, sim, fontName, fontSize, flag).toString(); + } + + public String ocrExOne(int x1, int y1, int x2, int y2, String color, double sim) { + return Dispatch.call(dm, "OcrExOne", x1, y1, x2, y2, color, sim).toString(); + } + + public int foobarStopGif(int hwnd, int x, int y, String picName) { + return Dispatch.call(dm, "FoobarStopGif", hwnd, x, y, picName).getInt(); + } + + public String findDoubleEx(int hwnd, String addrRange, double doubleValueMin, double doubleValueMax, int steps, int multiThread, int mode) { + return Dispatch.call(dm, "FindDoubleEx", hwnd, addrRange, doubleValueMin, doubleValueMax, steps, multiThread, mode).toString(); + } + + public int getCursorPos(int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "GetCursorPos", xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public String readFileData(String fileName, int startPos, int endPos) { + return Dispatch.call(dm, "ReadFileData", fileName, startPos, endPos).toString(); + } + + public int getDictCount(int index) { + return Dispatch.call(dm, "GetDictCount", index).getInt(); + } + + public int getOsBuildNumber() { + return Dispatch.call(dm, "GetOsBuildNumber").getInt(); + } + + public int faqPost(String server, int handle, int requestType, int timeOut) { + return Dispatch.call(dm, "FaqPost", server, handle, requestType, timeOut).getInt(); + } + + public int aiEnableFindPicWindow(int enable) { + return Dispatch.call(dm, "AiEnableFindPicWindow", enable).getInt(); + } + + public int decodeFile(String fileName, String pwd) { + return Dispatch.call(dm, "DecodeFile", fileName, pwd).getInt(); + } + + public int disableCloseDisplayAndSleep() { + return Dispatch.call(dm, "DisableCloseDisplayAndSleep").getInt(); + } + + public int foobarClearText(int hwnd) { + return Dispatch.call(dm, "FoobarClearText", hwnd).getInt(); + } + + public int foobarClose(int hwnd) { + return Dispatch.call(dm, "FoobarClose", hwnd).getInt(); + } + + public int saveDict(int index, String fileName) { + return Dispatch.call(dm, "SaveDict", index, fileName).getInt(); + } + + public int foobarDrawText(int hwnd, int x, int y, int w, int h, String text, String color, int align) { + return Dispatch.call(dm, "FoobarDrawText", hwnd, x, y, w, h, text, color, align).getInt(); + } + + public int setKeypadDelay(String tpe, int delay) { + return Dispatch.call(dm, "SetKeypadDelay", tpe, delay).getInt(); + } + + public int setDict(int index, String dictName) { + return Dispatch.call(dm, "SetDict", index, dictName).getInt(); + } + + public String getNetTimeByIp(String ip) { + return Dispatch.call(dm, "GetNetTimeByIp", ip).toString(); + } + + public int setSendStringDelay(int delay) { + return Dispatch.call(dm, "SetSendStringDelay", delay).getInt(); + } + + public String readData(int hwnd, String addr, int length) { + return Dispatch.call(dm, "ReadData", hwnd, addr, length).toString(); + } + + public int moveDD(int dx, int dy) { + return Dispatch.call(dm, "MoveDD", dx, dy).getInt(); + } + + public int foobarUnlock(int hwnd) { + return Dispatch.call(dm, "FoobarUnlock", hwnd).getInt(); + } + + public int stop(int id) { + return Dispatch.call(dm, "Stop", id).getInt(); + } + + public int forceUnBindWindow(int hwnd) { + return Dispatch.call(dm, "ForceUnBindWindow", hwnd).getInt(); + } + + public int getResultPos(String str, int index, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "GetResultPos", str, index, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public String findStrFastExS(int x1, int y1, int x2, int y2, String str, String color, double sim) { + return Dispatch.call(dm, "FindStrFastExS", x1, y1, x2, y2, str, color, sim).toString(); + } + + public int showScrMsg(int x1, int y1, int x2, int y2, String msg, String color) { + return Dispatch.call(dm, "ShowScrMsg", x1, y1, x2, y2, msg, color).getInt(); + } + + public String findPicMemEx(int x1, int y1, int x2, int y2, String picInfo, String deltaColor, double sim, int dir) { + return Dispatch.call(dm, "FindPicMemEx", x1, y1, x2, y2, picInfo, deltaColor, sim, dir).toString(); + } + + public String findIntEx(int hwnd, String addrRange, long intValueMin, long intValueMax, int tpe, int steps, int multiThread, int mode) { + return Dispatch.call(dm, "FindIntEx", hwnd, addrRange, intValueMin, intValueMax, tpe, steps, multiThread, mode).toString(); + } + + public int getLocale() { + return Dispatch.call(dm, "GetLocale").getInt(); + } + + public int loadPicByte(int addr, int size, String name) { + return Dispatch.call(dm, "LoadPicByte", addr, size, name).getInt(); + } + + public int isDisplayDead(int x1, int y1, int x2, int y2, int t) { + return Dispatch.call(dm, "IsDisplayDead", x1, y1, x2, y2, t).getInt(); + } + + public String getColorBGR(int x, int y) { + return Dispatch.call(dm, "GetColorBGR", x, y).toString(); + } + + public int getScreenDataBmp(int x1, int y1, int x2, int y2, int[] data, int[] size) { + Variant dataVar = new Variant(0, true); + Variant sizeVar = new Variant(0, true); + int result = Dispatch.call(dm, "GetScreenDataBmp", x1, y1, x2, y2, dataVar, sizeVar).getInt(); + data[0] = dataVar.getInt(); + size[0] = sizeVar.getInt(); + return result; + } + + public String getCursorSpot() { + return Dispatch.call(dm, "GetCursorSpot").toString(); + } + + public String findPicExS(int x1, int y1, int x2, int y2, String picName, String deltaColor, double sim, int dir) { + return Dispatch.call(dm, "FindPicExS", x1, y1, x2, y2, picName, deltaColor, sim, dir).toString(); + } + + public int getWindowThreadId(int hwnd) { + return Dispatch.call(dm, "GetWindowThreadId", hwnd).getInt(); + } + + public int keyDownChar(String keyStr) { + return Dispatch.call(dm, "KeyDownChar", keyStr).getInt(); + } + + public int getKeyState(int vk) { + return Dispatch.call(dm, "GetKeyState", vk).getInt(); + } + + public int checkFontSmooth() { + return Dispatch.call(dm, "CheckFontSmooth").getInt(); + } + + public int lockMouseRect(int x1, int y1, int x2, int y2) { + return Dispatch.call(dm, "LockMouseRect", x1, y1, x2, y2).getInt(); + } + + public int faqGetSize(int handle) { + return Dispatch.call(dm, "FaqGetSize", handle).getInt(); + } + + public String findPicSimEx(int x1, int y1, int x2, int y2, String picName, String deltaColor, int sim, int dir) { + return Dispatch.call(dm, "FindPicSimEx", x1, y1, x2, y2, picName, deltaColor, sim, dir).toString(); + } + + public float readFloat(int hwnd, String addr) { + return Dispatch.call(dm, "ReadFloat", hwnd, addr).getFloat(); + } + + public int writeDoubleAddr(int hwnd, long addr, double v) { + return Dispatch.call(dm, "WriteDoubleAddr", hwnd, addr, v).getInt(); + } + + public String getDict(int index, int fontIndex) { + return Dispatch.call(dm, "GetDict", index, fontIndex).toString(); + } + + public String moveToEx(int x, int y, int w, int h) { + return Dispatch.call(dm, "MoveToEx", x, y, w, h).toString(); + } + + public String getCursorShape() { + return Dispatch.call(dm, "GetCursorShape").toString(); + } + + public int isSurrpotVt() { + return Dispatch.call(dm, "IsSurrpotVt").getInt(); + } + + public int loadPic(String picName) { + return Dispatch.call(dm, "LoadPic", picName).getInt(); + } + + public int keyUp(int vk) { + return Dispatch.call(dm, "KeyUp", vk).getInt(); + } + + public int capturePre(String fileName) { + return Dispatch.call(dm, "CapturePre", fileName).getInt(); + } + + public String getDiskReversion(int index) { + return Dispatch.call(dm, "GetDiskReversion", index).toString(); + } + + public String getRealPath(String path) { + return Dispatch.call(dm, "GetRealPath", path).toString(); + } + + public int setWordLineHeight(int lineHeight) { + return Dispatch.call(dm, "SetWordLineHeight", lineHeight).getInt(); + } + + public int releaseRef() { + return Dispatch.call(dm, "ReleaseRef").getInt(); + } + + public int enablePicCache(int en) { + return Dispatch.call(dm, "EnablePicCache", en).getInt(); + } + + public String findInt(int hwnd, String addrRange, long intValueMin, long intValueMax, int tpe) { + return Dispatch.call(dm, "FindInt", hwnd, addrRange, intValueMin, intValueMax, tpe).toString(); + } + + public int log(String info) { + return Dispatch.call(dm, "Log", info).getInt(); + } + + public int showTaskBarIcon(int hwnd, int isShow) { + return Dispatch.call(dm, "ShowTaskBarIcon", hwnd, isShow).getInt(); + } + + public int dmGuard(int en, String tpe) { + return Dispatch.call(dm, "DmGuard", en, tpe).getInt(); + } + + public String findString(int hwnd, String addrRange, String stringValue, int tpe) { + return Dispatch.call(dm, "FindString", hwnd, addrRange, stringValue, tpe).toString(); + } + + public int freePic(String picName) { + return Dispatch.call(dm, "FreePic", picName).getInt(); + } + + public int createFoobarRect(int hwnd, int x, int y, int w, int h) { + return Dispatch.call(dm, "CreateFoobarRect", hwnd, x, y, w, h).getInt(); + } + + public int virtualProtectEx(int hwnd, long addr, int size, int tpe, int oldProtect) { + return Dispatch.call(dm, "VirtualProtectEx", hwnd, addr, size, tpe, oldProtect).getInt(); + } + + public String getAveHSV(int x1, int y1, int x2, int y2) { + return Dispatch.call(dm, "GetAveHSV", x1, y1, x2, y2).toString(); + } + + public int getWindowProcessId(int hwnd) { + return Dispatch.call(dm, "GetWindowProcessId", hwnd).getInt(); + } + + public String getClipboard() { + return Dispatch.call(dm, "GetClipboard").toString(); + } + + public int setMinColGap(int colGap) { + return Dispatch.call(dm, "SetMinColGap", colGap).getInt(); + } + + public int deleteIniPwd(String section, String key, String fileName, String pwd) { + return Dispatch.call(dm, "DeleteIniPwd", section, key, fileName, pwd).getInt(); + } + + public int getPointWindow(int x, int y) { + return Dispatch.call(dm, "GetPointWindow", x, y).getInt(); + } + + public String faqSend(String server, int handle, int requestType, int timeOut) { + return Dispatch.call(dm, "FaqSend", server, handle, requestType, timeOut).toString(); + } + + public int asmSetTimeout(int timeOut, int param) { + return Dispatch.call(dm, "AsmSetTimeout", timeOut, param).getInt(); + } + + public int setMouseSpeed(int speed) { + return Dispatch.call(dm, "SetMouseSpeed", speed).getInt(); + } + + public int copyFile(String srcFile, String dstFile, int over) { + return Dispatch.call(dm, "CopyFile", srcFile, dstFile, over).getInt(); + } + + public String findStrExS(int x1, int y1, int x2, int y2, String str, String color, double sim) { + return Dispatch.call(dm, "FindStrExS", x1, y1, x2, y2, str, color, sim).toString(); + } + + public String aiYoloDetectObjects(int x1, int y1, int x2, int y2, double prob, double iou) { + return Dispatch.call(dm, "AiYoloDetectObjects", x1, y1, x2, y2, prob, iou).toString(); + } + + public String findDouble(int hwnd, String addrRange, double doubleValueMin, double doubleValueMax) { + return Dispatch.call(dm, "FindDouble", hwnd, addrRange, doubleValueMin, doubleValueMax).toString(); + } + + public String getDictInfo(String str, String fontName, int fontSize, int flag) { + return Dispatch.call(dm, "GetDictInfo", str, fontName, fontSize, flag).toString(); + } + + public int aiYoloUseModel(int index) { + return Dispatch.call(dm, "AiYoloUseModel", index).getInt(); + } + + public int imageToBmp(String picName, String bmpName) { + return Dispatch.call(dm, "ImageToBmp", picName, bmpName).getInt(); + } + + public String intToData(long intValue, int tpe) { + return Dispatch.call(dm, "IntToData", intValue, tpe).toString(); + } + + public int faqCaptureString(String str) { + return Dispatch.call(dm, "FaqCaptureString", str).getInt(); + } + + public String assemble(long baseAddr, int is64bit) { + return Dispatch.call(dm, "Assemble", baseAddr, is64bit).toString(); + } + + public String ver() { + return Dispatch.call(dm, "Ver").toString(); + } + + public String fetchWord(int x1, int y1, int x2, int y2, String color, String word) { + return Dispatch.call(dm, "FetchWord", x1, y1, x2, y2, color, word).toString(); + } + + public int middleDown() { + return Dispatch.call(dm, "MiddleDown").getInt(); + } + + public String findStrFastE(int x1, int y1, int x2, int y2, String str, String color, double sim) { + return Dispatch.call(dm, "FindStrFastE", x1, y1, x2, y2, str, color, sim).toString(); + } + + public int setWordLineHeightNoDict(int lineHeight) { + return Dispatch.call(dm, "SetWordLineHeightNoDict", lineHeight).getInt(); + } + + public int foobarUpdate(int hwnd) { + return Dispatch.call(dm, "FoobarUpdate", hwnd).getInt(); + } + + public String hex32(int v) { + return Dispatch.call(dm, "Hex32", v).toString(); + } + + public String appendPicAddr(String picInfo, int addr, int size) { + return Dispatch.call(dm, "AppendPicAddr", picInfo, addr, size).toString(); + } + + public int aiYoloSetVersion(String Ver) { + return Dispatch.call(dm, "AiYoloSetVersion", Ver).getInt(); + } + + public String md5(String str) { + return Dispatch.call(dm, "Md5", str).toString(); + } + + public int openProcess(int pid) { + return Dispatch.call(dm, "OpenProcess", pid).getInt(); + } + + public int setDisplayRefreshDelay(int t) { + return Dispatch.call(dm, "SetDisplayRefreshDelay", t).getInt(); + } + + public int setWindowTransparent(int hwnd, int v) { + return Dispatch.call(dm, "SetWindowTransparent", hwnd, v).getInt(); + } + + public int setWordGapNoDict(int wordGap) { + return Dispatch.call(dm, "SetWordGapNoDict", wordGap).getInt(); + } + + public int setEnumWindowDelay(int delay) { + return Dispatch.call(dm, "SetEnumWindowDelay", delay).getInt(); + } + + public int aiYoloSetModel(int index, String fileName, String pwd) { + return Dispatch.call(dm, "AiYoloSetModel", index, fileName, pwd).getInt(); + } + + public String stringToData(String stringValue, int tpe) { + return Dispatch.call(dm, "StringToData", stringValue, tpe).toString(); + } + + public int setClientSize(int hwnd, int width, int height) { + return Dispatch.call(dm, "SetClientSize", hwnd, width, height).getInt(); + } + + public int setDisplayAcceler(int level) { + return Dispatch.call(dm, "SetDisplayAcceler", level).getInt(); + } + + public int waitKey(int keyCode, int timeOut) { + return Dispatch.call(dm, "WaitKey", keyCode, timeOut).getInt(); + } + + public int setMemoryHwndAsProcessId(int en) { + return Dispatch.call(dm, "SetMemoryHwndAsProcessId", en).getInt(); + } + + public int enableShareDict(int en) { + return Dispatch.call(dm, "EnableShareDict", en).getInt(); + } + + public String enumProcess(String name) { + return Dispatch.call(dm, "EnumProcess", name).toString(); + } + + public int is64Bit() { + return Dispatch.call(dm, "Is64Bit").getInt(); + } + + public String executeCmd(String cmd, String currentDir, int timeOut) { + return Dispatch.call(dm, "ExecuteCmd", cmd, currentDir, timeOut).toString(); + } + + public String findStrEx(int x1, int y1, int x2, int y2, String str, String color, double sim) { + return Dispatch.call(dm, "FindStrEx", x1, y1, x2, y2, str, color, sim).toString(); + } + + public int writeData(int hwnd, String addr, String data) { + return Dispatch.call(dm, "WriteData", hwnd, addr, data).getInt(); + } + + public int faqCancel() { + return Dispatch.call(dm, "FaqCancel").getInt(); + } + + public int createFoobarCustom(int hwnd, int x, int y, String pic, String transColor, double sim) { + return Dispatch.call(dm, "CreateFoobarCustom", hwnd, x, y, pic, transColor, sim).getInt(); + } + + public String findMultiColorEx(int x1, int y1, int x2, int y2, String firstColor, String offsetColor, double sim, int dir) { + return Dispatch.call(dm, "FindMultiColorEx", x1, y1, x2, y2, firstColor, offsetColor, sim, dir).toString(); + } + + public String enumWindowByProcessId(int pid, String title, String className, int filter) { + return Dispatch.call(dm, "EnumWindowByProcessId", pid, title, className, filter).toString(); + } + + public long getModuleBaseAddr(int hwnd, String moduleName) { + return Dispatch.call(dm, "GetModuleBaseAddr", hwnd, moduleName).getLong(); + } + + public String getNetTime() { + return Dispatch.call(dm, "GetNetTime").toString(); + } + + public int enableBind(int en) { + return Dispatch.call(dm, "EnableBind", en).getInt(); + } + + public int enableKeypadSync(int en, int timeOut) { + return Dispatch.call(dm, "EnableKeypadSync", en, timeOut).getInt(); + } + + public int lockDisplay(int locks) { + return Dispatch.call(dm, "LockDisplay", locks).getInt(); + } + + public float readFloatAddr(int hwnd, long addr) { + return Dispatch.call(dm, "ReadFloatAddr", hwnd, addr).getFloat(); + } + + public int enableMouseAccuracy(int en) { + return Dispatch.call(dm, "EnableMouseAccuracy", en).getInt(); + } + + public int faqCapture(int x1, int y1, int x2, int y2, int quality, int delay, int time) { + return Dispatch.call(dm, "FaqCapture", x1, y1, x2, y2, quality, delay, time).getInt(); + } + + public int loadAiMemory(int addr, int size) { + return Dispatch.call(dm, "LoadAiMemory", addr, size).getInt(); + } + + public int foobarTextRect(int hwnd, int x, int y, int w, int h) { + return Dispatch.call(dm, "FoobarTextRect", hwnd, x, y, w, h).getInt(); + } + + public String getColor(int x, int y) { + return Dispatch.call(dm, "GetColor", x, y).toString(); + } + + public int sendCommand(String cmd) { + return Dispatch.call(dm, "SendCommand", cmd).getInt(); + } + + public int getResultCount(String str) { + return Dispatch.call(dm, "GetResultCount", str).getInt(); + } + + public int setDisplayInput(String mode) { + return Dispatch.call(dm, "SetDisplayInput", mode).getInt(); + } + + public String findStringEx(int hwnd, String addrRange, String stringValue, int tpe, int steps, int multiThread, int mode) { + return Dispatch.call(dm, "FindStringEx", hwnd, addrRange, stringValue, tpe, steps, multiThread, mode).toString(); + } + + public int setMemoryFindResultToFile(String fileName) { + return Dispatch.call(dm, "SetMemoryFindResultToFile", fileName).getInt(); + } + + public String getWordResultStr(String str, int index) { + return Dispatch.call(dm, "GetWordResultStr", str, index).toString(); + } + + public int enableKeypadPatch(int en) { + return Dispatch.call(dm, "EnableKeypadPatch", en).getInt(); + } + + public int setDictMem(int index, int addr, int size) { + return Dispatch.call(dm, "SetDictMem", index, addr, size).getInt(); + } + + public int setFindPicMultithreadLimit(int limit) { + return Dispatch.call(dm, "SetFindPicMultithreadLimit", limit).getInt(); + } + + public String getMac() { + return Dispatch.call(dm, "GetMac").toString(); + } + + public int unLoadDriver() { + return Dispatch.call(dm, "UnLoadDriver").getInt(); + } + + public int writeIntAddr(int hwnd, long addr, int tpe, long v) { + return Dispatch.call(dm, "WriteIntAddr", hwnd, addr, tpe, v).getInt(); + } + + public String getEnv(int index, String name) { + return Dispatch.call(dm, "GetEnv", index, name).toString(); + } + + public int setMouseDelay(String tpe, int delay) { + return Dispatch.call(dm, "SetMouseDelay", tpe, delay).getInt(); + } + + public int getOsType() { + return Dispatch.call(dm, "GetOsType").getInt(); + } + + public String findShapeEx(int x1, int y1, int x2, int y2, String offsetColor, double sim, int dir) { + return Dispatch.call(dm, "FindShapeEx", x1, y1, x2, y2, offsetColor, sim, dir).toString(); + } + + public int captureJpg(int x1, int y1, int x2, int y2, String fileName, int quality) { + return Dispatch.call(dm, "CaptureJpg", x1, y1, x2, y2, fileName, quality).getInt(); + } + + public int capture(int x1, int y1, int x2, int y2, String fileName) { + return Dispatch.call(dm, "Capture", x1, y1, x2, y2, fileName).getInt(); + } + + public String excludePos(String allPos, int tpe, int x1, int y1, int x2, int y2) { + return Dispatch.call(dm, "ExcludePos", allPos, tpe, x1, y1, x2, y2).toString(); + } + + public int disablePowerSave() { + return Dispatch.call(dm, "DisablePowerSave").getInt(); + } + + public String getNetTimeSafe() { + return Dispatch.call(dm, "GetNetTimeSafe").toString(); + } + + public int findPicMem(int x1, int y1, int x2, int y2, String picInfo, String deltaColor, double sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindPicMem", x1, y1, x2, y2, picInfo, deltaColor, sim, dir, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public String enumWindowByProcess(String processName, String title, String className, int filter) { + return Dispatch.call(dm, "EnumWindowByProcess", processName, title, className, filter).toString(); + } + + public int middleUp() { + return Dispatch.call(dm, "MiddleUp").getInt(); + } + + public int getScreenData(int x1, int y1, int x2, int y2) { + return Dispatch.call(dm, "GetScreenData", x1, y1, x2, y2).getInt(); + } + + public int getWordResultPos(String str, int index, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "GetWordResultPos", str, index, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public long asmCall(int hwnd, int mode) { + return Dispatch.call(dm, "AsmCall", hwnd, mode).getLong(); + } + + public String getProcessInfo(int pid) { + return Dispatch.call(dm, "GetProcessInfo", pid).toString(); + } + + public String findPicSimMemE(int x1, int y1, int x2, int y2, String picInfo, String deltaColor, int sim, int dir) { + return Dispatch.call(dm, "FindPicSimMemE", x1, y1, x2, y2, picInfo, deltaColor, sim, dir).toString(); + } + + public String aiFindPicMemEx(int x1, int y1, int x2, int y2, String picInfo, double sim, int dir) { + return Dispatch.call(dm, "AiFindPicMemEx", x1, y1, x2, y2, picInfo, sim, dir).toString(); + } + + public int enableFakeActive(int en) { + return Dispatch.call(dm, "EnableFakeActive", en).getInt(); + } + + public long readIntAddr(int hwnd, long addr, int tpe) { + return Dispatch.call(dm, "ReadIntAddr", hwnd, addr, tpe).getLong(); + } + + public String getDir(int tpe) { + return Dispatch.call(dm, "GetDir", tpe).toString(); + } + + public String aiYoloSortsObjects(String objects, int height) { + return Dispatch.call(dm, "AiYoloSortsObjects", objects, height).toString(); + } + + public String enumIniKey(String section, String fileName) { + return Dispatch.call(dm, "EnumIniKey", section, fileName).toString(); + } + + public int sendStringIme2(int hwnd, String str, int mode) { + return Dispatch.call(dm, "SendStringIme2", hwnd, str, mode).getInt(); + } + + public int getScreenWidth() { + return Dispatch.call(dm, "GetScreenWidth").getInt(); + } + + public int keyPressChar(String keyStr) { + return Dispatch.call(dm, "KeyPressChar", keyStr).getInt(); + } + + public int setWindowText(int hwnd, String text) { + return Dispatch.call(dm, "SetWindowText", hwnd, text).getInt(); + } + + public int encodeFile(String fileName, String pwd) { + return Dispatch.call(dm, "EncodeFile", fileName, pwd).getInt(); + } + + public int addDict(int index, String dictInfo) { + return Dispatch.call(dm, "AddDict", index, dictInfo).getInt(); + } + + public String findPicS(int x1, int y1, int x2, int y2, String picName, String deltaColor, double sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + String result = Dispatch.call(dm, "FindPicS", x1, y1, x2, y2, picName, deltaColor, sim, dir, xVar, yVar).toString(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public int findWindowByProcess(String processName, String className, String titleName) { + return Dispatch.call(dm, "FindWindowByProcess", processName, className, titleName).getInt(); + } + + public String getAveRGB(int x1, int y1, int x2, int y2) { + return Dispatch.call(dm, "GetAveRGB", x1, y1, x2, y2).toString(); + } + + public int reg(String code, String Ver) { + return Dispatch.call(dm, "Reg", code, Ver).getInt(); + } + + public int foobarDrawLine(int hwnd, int x1, int y1, int x2, int y2, String color, int style, int width) { + return Dispatch.call(dm, "FoobarDrawLine", hwnd, x1, y1, x2, y2, color, style, width).getInt(); + } + + public int writeFloatAddr(int hwnd, long addr, float v) { + return Dispatch.call(dm, "WriteFloatAddr", hwnd, addr, v).getInt(); + } + + public int activeInputMethod(int hwnd, String id) { + return Dispatch.call(dm, "ActiveInputMethod", hwnd, id).getInt(); + } + + public String findPicMemE(int x1, int y1, int x2, int y2, String picInfo, String deltaColor, double sim, int dir) { + return Dispatch.call(dm, "FindPicMemE", x1, y1, x2, y2, picInfo, deltaColor, sim, dir).toString(); + } + + public int faqIsPosted() { + return Dispatch.call(dm, "FaqIsPosted").getInt(); + } + + public int writeFloat(int hwnd, String addr, float v) { + return Dispatch.call(dm, "WriteFloat", hwnd, addr, v).getInt(); + } + + public int isFileExist(String fileName) { + return Dispatch.call(dm, "IsFileExist", fileName).getInt(); + } + + public int strStr(String s, String str) { + return Dispatch.call(dm, "StrStr", s, str).getInt(); + } + + public String rgb2BGR(String rgbColor) { + return Dispatch.call(dm, "RGB2BGR", rgbColor).toString(); + } + + public int loadAi(String fileName) { + return Dispatch.call(dm, "LoadAi", fileName).getInt(); + } + + public int setExcludeRegion(int tpe, String info) { + return Dispatch.call(dm, "SetExcludeRegion", tpe, info).getInt(); + } + + public int getClientRect(int hwnd, int[] x1, int[] y1, int[] x2, int[] y2) { + Variant x1Var = new Variant(0, true); + Variant y1Var = new Variant(0, true); + Variant x2Var = new Variant(0, true); + Variant y2Var = new Variant(0, true); + int result = Dispatch.call(dm, "GetClientRect", hwnd, x1Var, y1Var, x2Var, y2Var).getInt(); + x1[0] = x1Var.getInt(); + y1[0] = y1Var.getInt(); + x2[0] = x2Var.getInt(); + y2[0] = y2Var.getInt(); + return result; + } + + public int virtualFreeEx(int hwnd, long addr) { + return Dispatch.call(dm, "VirtualFreeEx", hwnd, addr).getInt(); + } + + public int getCpuType() { + return Dispatch.call(dm, "GetCpuType").getInt(); + } + + public int foobarSetFont(int hwnd, String fontName, int size, int flag) { + return Dispatch.call(dm, "FoobarSetFont", hwnd, fontName, size, flag).getInt(); + } + + public int leftDown() { + return Dispatch.call(dm, "LeftDown").getInt(); + } + + public int setExactOcr(int exactOcr) { + return Dispatch.call(dm, "SetExactOcr", exactOcr).getInt(); + } + + public String getSystemInfo(String tpe, int method) { + return Dispatch.call(dm, "GetSystemInfo", tpe, method).toString(); + } + + public int setWindowState(int hwnd, int flag) { + return Dispatch.call(dm, "SetWindowState", hwnd, flag).getInt(); + } + + public int writeIniPwd(String section, String key, String v, String fileName, String pwd) { + return Dispatch.call(dm, "WriteIniPwd", section, key, v, fileName, pwd).getInt(); + } + + public int dmGuardLoadCustom(String tpe, String path) { + return Dispatch.call(dm, "DmGuardLoadCustom", tpe, path).getInt(); + } + + public double readDouble(int hwnd, String addr) { + return Dispatch.call(dm, "ReadDouble", hwnd, addr).getDouble(); + } + + public String findMultiColorE(int x1, int y1, int x2, int y2, String firstColor, String offsetColor, double sim, int dir) { + return Dispatch.call(dm, "FindMultiColorE", x1, y1, x2, y2, firstColor, offsetColor, sim, dir).toString(); + } + + public String getBasePath() { + return Dispatch.call(dm, "GetBasePath").toString(); + } + + public String findStrE(int x1, int y1, int x2, int y2, String str, String color, double sim) { + return Dispatch.call(dm, "FindStrE", x1, y1, x2, y2, str, color, sim).toString(); + } + + public int setShowAsmErrorMsg(int show) { + return Dispatch.call(dm, "SetShowAsmErrorMsg", show).getInt(); + } + + public String selectFile() { + return Dispatch.call(dm, "SelectFile").toString(); + } + + public long virtualAllocEx(int hwnd, long addr, int size, int tpe) { + return Dispatch.call(dm, "VirtualAllocEx", hwnd, addr, size, tpe).getLong(); + } + + public int setExportDict(int index, String dictName) { + return Dispatch.call(dm, "SetExportDict", index, dictName).getInt(); + } + + public int asmAdd(String asmIns) { + return Dispatch.call(dm, "AsmAdd", asmIns).getInt(); + } + + public String aiYoloObjectsToString(String objects) { + return Dispatch.call(dm, "AiYoloObjectsToString", objects).toString(); + } + + public int keyPress(int vk) { + return Dispatch.call(dm, "KeyPress", vk).getInt(); + } + + public String findColorEx(int x1, int y1, int x2, int y2, String color, double sim, int dir) { + return Dispatch.call(dm, "FindColorEx", x1, y1, x2, y2, color, sim, dir).toString(); + } + + public String findShapeE(int x1, int y1, int x2, int y2, String offsetColor, double sim, int dir) { + return Dispatch.call(dm, "FindShapeE", x1, y1, x2, y2, offsetColor, sim, dir).toString(); + } + + public int setDictPwd(String pwd) { + return Dispatch.call(dm, "SetDictPwd", pwd).getInt(); + } + + public int setDisplayDelay(int t) { + return Dispatch.call(dm, "SetDisplayDelay", t).getInt(); + } + + public String readDataAddr(int hwnd, long addr, int length) { + return Dispatch.call(dm, "ReadDataAddr", hwnd, addr, length).toString(); + } + + public int getWindowRect(int hwnd, int[] x1, int[] y1, int[] x2, int[] y2) { + Variant x1Var = new Variant(0, true); + Variant y1Var = new Variant(0, true); + Variant x2Var = new Variant(0, true); + Variant y2Var = new Variant(0, true); + int result = Dispatch.call(dm, "GetWindowRect", hwnd, x1Var, y1Var, x2Var, y2Var).getInt(); + x1[0] = x1Var.getInt(); + y1[0] = y1Var.getInt(); + x2[0] = x2Var.getInt(); + y2[0] = y2Var.getInt(); + return result; + } + + public int readDataAddrToBin(int hwnd, long addr, int length) { + return Dispatch.call(dm, "ReadDataAddrToBin", hwnd, addr, length).getInt(); + } + + public int getModuleSize(int hwnd, String moduleName) { + return Dispatch.call(dm, "GetModuleSize", hwnd, moduleName).getInt(); + } + + public int setEnv(int index, String name, String value) { + return Dispatch.call(dm, "SetEnv", index, name, value).getInt(); + } + + public int findPicSimMem(int x1, int y1, int x2, int y2, String picInfo, String deltaColor, int sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindPicSimMem", x1, y1, x2, y2, picInfo, deltaColor, sim, dir, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public String enumIniSection(String fileName) { + return Dispatch.call(dm, "EnumIniSection", fileName).toString(); + } + + public String getMachineCodeNoMac() { + return Dispatch.call(dm, "GetMachineCodeNoMac").toString(); + } + + public int findPic(int x1, int y1, int x2, int y2, String picName, String deltaColor, double sim, int dir, int[] x, int[] y) { + Variant xVar = new Variant(0, true); + Variant yVar = new Variant(0, true); + int result = Dispatch.call(dm, "FindPic", x1, y1, x2, y2, picName, deltaColor, sim, dir, xVar, yVar).getInt(); + x[0] = xVar.getInt(); + y[0] = yVar.getInt(); + return result; + } + + public int faqCaptureFromFile(int x1, int y1, int x2, int y2, String fileName, int quality) { + return Dispatch.call(dm, "FaqCaptureFromFile", x1, y1, x2, y2, fileName, quality).getInt(); + } + + public int capturePng(int x1, int y1, int x2, int y2, String fileName) { + return Dispatch.call(dm, "CapturePng", x1, y1, x2, y2, fileName).getInt(); + } + + public String enumIniSectionPwd(String fileName, String pwd) { + return Dispatch.call(dm, "EnumIniSectionPwd", fileName, pwd).toString(); + } + + public String getDiskSerial(int index) { + return Dispatch.call(dm, "GetDiskSerial", index).toString(); + } + + public int moveR(int rx, int ry) { + return Dispatch.call(dm, "MoveR", rx, ry).getInt(); + } + + public int findWindow(String className, String titleName) { + return Dispatch.call(dm, "FindWindow", className, titleName).getInt(); + } + + public int deleteFolder(String folderName) { + return Dispatch.call(dm, "DeleteFolder", folderName).getInt(); + } + + public int lockInput(int locks) { + return Dispatch.call(dm, "LockInput", locks).getInt(); + } + + public int moveTo(int x, int y) { + return Dispatch.call(dm, "MoveTo", x, y).getInt(); + } + + public int readDataToBin(int hwnd, String addr, int length) { + return Dispatch.call(dm, "ReadDataToBin", hwnd, addr, length).getInt(); + } + + public int writeIni(String section, String key, String v, String fileName) { + return Dispatch.call(dm, "WriteIni", section, key, v, fileName).getInt(); + } + + public int downCpu(int tpe, int rate) { + return Dispatch.call(dm, "DownCpu", tpe, rate).getInt(); + } + + public int bindWindow(int hwnd, String display, String mouse, String keypad, int mode) { + return Dispatch.call(dm, "BindWindow", hwnd, display, mouse, keypad, mode).getInt(); + } + + public int getWordResultCount(String str) { + return Dispatch.call(dm, "GetWordResultCount", str).getInt(); + } + + public int writeString(int hwnd, String addr, int tpe, String v) { + return Dispatch.call(dm, "WriteString", hwnd, addr, tpe, v).getInt(); + } + + public int unBindWindow() { + return Dispatch.call(dm, "UnBindWindow").getInt(); + } + + public String enumWindow(int parent, String title, String className, int filter) { + return Dispatch.call(dm, "EnumWindow", parent, title, className, filter).toString(); + } + + public int clearDict(int index) { + return Dispatch.call(dm, "ClearDict", index).getInt(); + } + + public int setParam64ToPointer() { + return Dispatch.call(dm, "SetParam64ToPointer").getInt(); + } + + public int getForegroundWindow() { + return Dispatch.call(dm, "GetForegroundWindow").getInt(); + } + + public int rightUp() { + return Dispatch.call(dm, "RightUp").getInt(); + } + + public int findWindowEx(int parent, String className, String titleName) { + return Dispatch.call(dm, "FindWindowEx", parent, className, titleName).getInt(); + } + + public String selectDirectory() { + return Dispatch.call(dm, "SelectDirectory").toString(); + } + + public int setUAC(int uac) { + return Dispatch.call(dm, "SetUAC", uac).getInt(); + } + + public int getDPI() { + return Dispatch.call(dm, "GetDPI").getInt(); + } + + public int getForegroundFocus() { + return Dispatch.call(dm, "GetForegroundFocus").getInt(); + } + + public int cmpColor(int x, int y, String color, double sim) { + return Dispatch.call(dm, "CmpColor", x, y, color, sim).getInt(); + } + + public String readIniPwd(String section, String key, String fileName, String pwd) { + return Dispatch.call(dm, "ReadIniPwd", section, key, fileName, pwd).toString(); + } + + public String findStrFastEx(int x1, int y1, int x2, int y2, String str, String color, double sim) { + return Dispatch.call(dm, "FindStrFastEx", x1, y1, x2, y2, str, color, sim).toString(); + } + + public int terminateProcessTree(int pid) { + return Dispatch.call(dm, "TerminateProcessTree", pid).getInt(); + } + + public int foobarDrawPic(int hwnd, int x, int y, String pic, String transColor) { + return Dispatch.call(dm, "FoobarDrawPic", hwnd, x, y, pic, transColor).getInt(); + } + + public int enableGetColorByCapture(int en) { + return Dispatch.call(dm, "EnableGetColorByCapture", en).getInt(); + } + + public String getDiskModel(int index) { + return Dispatch.call(dm, "GetDiskModel", index).toString(); + } + + public int setWordGap(int wordGap) { + return Dispatch.call(dm, "SetWordGap", wordGap).getInt(); + } + + public int foobarSetTrans(int hwnd, int trans, String color, double sim) { + return Dispatch.call(dm, "FoobarSetTrans", hwnd, trans, color, sim).getInt(); + } + + public String aiFindPicEx(int x1, int y1, int x2, int y2, String picName, double sim, int dir) { + return Dispatch.call(dm, "AiFindPicEx", x1, y1, x2, y2, picName, sim, dir).toString(); + } + + public String enumWindowSuper(String spec1, int flag1, int type1, String spec2, int flag2, int type2, int sort) { + return Dispatch.call(dm, "EnumWindowSuper", spec1, flag1, type1, spec2, flag2, type2, sort).toString(); + } + + public String getCommandLine(int hwnd) { + return Dispatch.call(dm, "GetCommandLine", hwnd).toString(); + } + + public int aiYoloDetectObjectsToFile(int x1, int y1, int x2, int y2, double prob, double iou, String fileName, int mode) { + return Dispatch.call(dm, "AiYoloDetectObjectsToFile", x1, y1, x2, y2, prob, iou, fileName, mode).getInt(); + } + + public int downloadFile(String url, String saveFile, int timeout) { + return Dispatch.call(dm, "DownloadFile", url, saveFile, timeout).getInt(); + } + + public int foobarLock(int hwnd) { + return Dispatch.call(dm, "FoobarLock", hwnd).getInt(); + } + + public int getWindowState(int hwnd, int flag) { + return Dispatch.call(dm, "GetWindowState", hwnd, flag).getInt(); + } + + public int writeStringAddr(int hwnd, long addr, int tpe, String v) { + return Dispatch.call(dm, "WriteStringAddr", hwnd, addr, tpe, v).getInt(); + } + + public int moveWindow(int hwnd, int x, int y) { + return Dispatch.call(dm, "MoveWindow", hwnd, x, y).getInt(); + } + + public int leftUp() { + return Dispatch.call(dm, "LeftUp").getInt(); + } + + public String findPicEx(int x1, int y1, int x2, int y2, String picName, String deltaColor, double sim, int dir) { + return Dispatch.call(dm, "FindPicEx", x1, y1, x2, y2, picName, deltaColor, sim, dir).toString(); + } + + public long readInt(int hwnd, String addr, int tpe) { + return Dispatch.call(dm, "ReadInt", hwnd, addr, tpe).getLong(); + } + + public int writeDouble(int hwnd, String addr, double v) { + return Dispatch.call(dm, "WriteDouble", hwnd, addr, v).getInt(); + } + + public int writeIntAddr(int hwnd, String addr, int tpe, long v) { + return Dispatch.call(dm, "WriteIntAddr", hwnd, addr, tpe, v).getInt(); + } + + public ActiveXComponent getDm() { + return dm; + } +} diff --git a/luqj-damo/src/main/java/com/luqj/dm/test/JacobDemo.java b/luqj-damo/src/main/java/com/luqj/dm/test/JacobDemo.java new file mode 100644 index 0000000..3c5c267 --- /dev/null +++ b/luqj-damo/src/main/java/com/luqj/dm/test/JacobDemo.java @@ -0,0 +1,293 @@ +package com.luqj.dm.test; + +import com.jacob.activeX.ActiveXComponent; +import com.jacob.com.Dispatch; +import com.jacob.com.Variant; +import com.sun.jna.*; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Paths; +import javax.imageio.ImageIO; +import java.awt.image.BufferedImage; +import java.io.*; + +/** + * 1. jdk要用x86-32位 + * 2. -Djava.library.path=C:\java_ws\etl-tool\etl-tool-jacob\src\main\libs + * 3.管理员权限运行 + */ +public class JacobDemo { + static final long MAX_SIZE = 10 * 1024 * 1024; // 10MB + static Memory mem = new Memory(MAX_SIZE); + + // 定义接口映射 DLL + public interface DmReg extends Library { + // 对应 DLL 方法,两个参数 + int SetDllPathA(String path, int is64); + } + + public static void main(String[] args) throws IOException { + // 指定 DLL 搜索路径 + NativeLibrary.addSearchPath("DmReg", "D:\\myprojects\\myEpusdt\\luqj-damo\\libs"); + DmReg INSTANCE = Native.load("DmReg", DmReg.class); + // DLL 路径,比如 C:\DmSoft + String dllPath = "C:\\Users\\Administrator\\Desktop\\dm\\dm.dll"; + + // 调用 SetDllPathA + int result = INSTANCE.SetDllPathA(dllPath, 0); + + if (result == 1) { + System.out.println("设置成功"); + } else { + System.out.println("设置失败,返回值:" + result); + } + // 创建大漠对象 + ActiveXComponent dm = new ActiveXComponent("dm.dmsoft"); + // 获取版本 + String ver = dm.invoke("Ver").toString(); + System.out.println(ver); + String count = dm.invoke("GetDmCount").toString(); + System.out.println(count); + dm.invoke("SetParam64ToPointer"); + try { + String methodName = "Reg"; + + // 两个 String 参数 + String str1 = "lu7213ab8fc97ec9e0277306ca66f8e6521ff6"; + String str2 = "lu7213"; + // 调用方法,使用 Object[] 或 Variant[] + Variant variant = Dispatch.call(dm, methodName, str1, str2); + // 输出结果 + System.out.println("COM 方法返回值: " + variant.toString()); + + } catch (Exception e) { + e.printStackTrace(); + } + dmAntiBan(dm); + openNpProtection(dm); + try { + String methodName = "CapturePng"; + // 调用方法,使用 Object[] 或 Variant[] + Variant variant = Dispatch.call(dm, methodName, 0, 0, 1024, 768, "C:/java_dm.png"); + // 输出结果 + System.out.println("COM 方法返回值: " + variant.toString()); + + } catch (Exception e) { + e.printStackTrace(); + } + + //983 1058 +// try { +// String methodName = "MoveToEx"; +// // 调用方法,使用 Object[] 或 Variant[] +// Variant variant = Dispatch.call(dm, methodName, 983, 1058, 2, 3); +// // 输出结果 +// System.out.println("MoveToEx: " + variant.toString()); +// dm.invoke("Delay", 3000); +// String outResult = dm.invoke("LeftClick").toString(); +// System.out.println("LeftClick: " + outResult); +// } catch (Exception e) { +// e.printStackTrace(); +// } + dm.invoke("SetPath", "D:\\myprojects\\myEpusdt\\luqj-damo\\src\\main\\resources"); + dm.invoke("EnableShareDict", 0); + try { + String methodName = "SetDict"; + // 调用方法,使用 Object[] 或 Variant[] + Variant variant = Dispatch.call(dm, methodName, 0, "test1.txt"); + // 输出结果 + System.out.println("COM 方法返回值: " + variant.toString()); + } catch (Exception e) { + e.printStackTrace(); + } + + count = dm.invoke("UseDict", 0).toString(); + System.out.println("UseDict result = " + count); + + count = dm.invoke("GetDictCount", 0).toString(); + System.out.println("GetDictCount = " + count); + + System.out.println("SetDisplayInput = " + dm.invoke("SetDisplayInput", "pic:D:/myprojects/myEpusdt/luqj-damo/src/main/resources/1.bmp")); + + try { + // true 表示 byRef + Variant x = new Variant(0, true); + Variant y = new Variant(0, true); + String methodName = "FindPic"; + // 调用方法,使用 Object[] 或 Variant[] + Variant variant = Dispatch.call(dm, methodName, 0, 0, 703, 319, "2.bmp", "000000", 0.9, 0, x, y); + // 输出结果 + System.out.println("COM 方法返回值: " + variant.toString()); + + } catch (Exception e) { + e.printStackTrace(); + } + // 写出BMP图片 + Boolean resultSw = png2bmp("D:/myprojects/myEpusdt/luqj-damo/src/main/resources/1.png","D:/myprojects/myEpusdt/luqj-damo/src/main/resources/11.bmp"); + + System.out.println("resultSw="+ resultSw); + + System.out.println("SetDisplayInput = " + dm.invoke("SetDisplayInput", "pic:D:/myprojects/myEpusdt/luqj-damo/src/main/resources/11.bmp")); + + try { + // 调用方法 + Variant variant = Dispatch.call(dm, "FindPicEx", 0, 0, 733, 597, "2.bmp", "000000", 0.9, 0); + // 输出结果 + System.out.println("COM 方法返回值: " + variant.toString()); + + } catch (Exception e) { + e.printStackTrace(); + } + dm.invoke("FreePic", "1.bmp"); + + byte[] newBytes = Files.readAllBytes(Paths.get("D:/myprojects/myEpusdt/luqj-damo/src/main/resources/1.bmp")); + mem.write(0, newBytes, 0, newBytes.length); + String param = "mem:" + Pointer.nativeValue(mem) + "," + newBytes.length; + System.out.println("SetDisplayInput = " + dm.invoke("SetDisplayInput", param)); + + try { + // 调用方法 + Variant variant = Dispatch.call(dm, "FindPicEx", 0, 0, 703, 319, "2.bmp", "000000", 0.9, 0); + // 输出结果 + System.out.println("COM 方法返回值: " + variant.toString()); + + } catch (Exception e) { + e.printStackTrace(); + } + + + // 1. 读取 JPG + BufferedImage image = png2bmp("D:/myprojects/myEpusdt/luqj-damo/src/main/resources/1.png"); + // 2. 写入内存 BMP + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + ImageIO.write(image, "BMP", baos); + byte[] bmpBytes = baos.toByteArray(); + baos.close(); + mem.write(0, bmpBytes, 0, bmpBytes.length); + param = "mem:" + Pointer.nativeValue(mem) + "," + bmpBytes.length; + System.out.println("SetDisplayInput = " + dm.invoke("SetDisplayInput", param)); + + try { + // 调用方法 + Variant variant = Dispatch.call(dm, "FindPicEx", 0, 0, 733, 597, "2.bmp", "000000", 0.9, 0); + // 输出结果 + System.out.println("COM 方法返回值: " + variant.toString()); + + } catch (Exception e) { + e.printStackTrace(); + } + + mem.close(); // ❌ 大漠还在用 + } + /** + * 开启 NP 保护盾 + * + * @param dm 大漠插件 ActiveXComponent 对象 + * @return 成功返回 true,失败返回 false + */ + public static boolean openNpProtection(ActiveXComponent dm) { + try { + // 调用大漠插件 DmGuard 方法,第一个参数 1 表示开启,第二个参数 "np" + int dmRet = Dispatch.call(dm, "DmGuard", 1, "np").getInt(); + + if (dmRet != 1) { + System.out.println("开启保护盾失败: " + dmRet); + return false; + } + } catch (Exception e) { + e.printStackTrace(); + return false; + } + + return true; + } + /** + * 大漠防封设置 + */ + public static void dmAntiBan(ActiveXComponent dm) { + Dispatch.call(dm, "SetKeypadDelay", "dx", 130); + Dispatch.call(dm, "SetMouseDelay", "dx", 130); + + Dispatch.call(dm, "EnableRealMouse", 1, 60, 200); + Dispatch.call(dm, "EnableRealKeypad", 1); + + Dispatch.call(dm, "EnableKeypadSync", 1, 200); + Dispatch.call(dm, "EnableMouseSync", 1, 200); + + Dispatch.call(dm, "EnableMouseMsg", 0); + Dispatch.call(dm, "EnableKeypadMsg", 0); + } + public static BufferedImage png2bmp(String inputfile) throws IOException { + File input = new File(inputfile); + + BufferedImage image = ImageIO.read(input); + + // 如果 PNG 带透明通道,BMP 不支持,需要转换为 RGB + BufferedImage rgbImage = new BufferedImage( + image.getWidth(), + image.getHeight(), + BufferedImage.TYPE_INT_RGB + ); + rgbImage.getGraphics().drawImage(image, 0, 0, null); + return rgbImage; + } + public static boolean png2bmp(String inputfile,String outfile) throws IOException { + File input = new File(inputfile); + File output = new File(outfile); + + BufferedImage image = ImageIO.read(input); + + // 如果 PNG 带透明通道,BMP 不支持,需要转换为 RGB + BufferedImage rgbImage = new BufferedImage( + image.getWidth(), + image.getHeight(), + BufferedImage.TYPE_INT_RGB + ); + rgbImage.getGraphics().drawImage(image, 0, 0, null); + return ImageIO.write(rgbImage, "bmp", output); + } + public static void testExcel(String[] args) { + //System.setProperty("java.library.path", "C:\\java_ws\\etl-tool\\etl-tool-jacob\\src\\main\\libs"); + // 启动 Excel + ActiveXComponent excel = new ActiveXComponent("Excel.Application"); + + try { + // 显示 Excel 窗口 + excel.setProperty("Visible", new Variant(true)); + + // 获取 Workbooks 对象 + Dispatch workbooks = excel.getProperty("Workbooks").toDispatch(); + + // 新建一个工作簿 + Dispatch workbook = Dispatch.call(workbooks, "Add").toDispatch(); + + // 获取活动工作表 + Dispatch sheet = Dispatch.get(workbook, "ActiveSheet").toDispatch(); + + // 写入单元格 A1 + Dispatch cell = Dispatch.invoke(sheet, "Cells", Dispatch.Get, + new Object[]{1, 1}, new int[1]).toDispatch(); + Dispatch.put(cell, "Value", "Hello JACOB"); + + // 写入单元格 B2 + Dispatch.put(Dispatch.invoke(sheet, "Cells", Dispatch.Get, + new Object[]{2, 2}, new int[1]).toDispatch(), "Value", "自动化测试"); + + // 保存工作簿 + Dispatch.call(workbook, "SaveAs", "C:\\Users\\armloop\\Desktop\\JacobDemo.xlsx"); + + // 关闭工作簿,不保存更改 + Dispatch.call(workbook, "Close", false); + + } catch (Exception e) { + e.printStackTrace(); + } finally { + // 退出 Excel + excel.invoke("Quit"); + } + + System.out.println("Excel 操作完成!"); + + } +} diff --git a/luqj-damo/src/main/resources/1.bmp b/luqj-damo/src/main/resources/1.bmp new file mode 100644 index 0000000..14e08bf Binary files /dev/null and b/luqj-damo/src/main/resources/1.bmp differ diff --git a/luqj-damo/src/main/resources/1.png b/luqj-damo/src/main/resources/1.png new file mode 100644 index 0000000..e03dd78 Binary files /dev/null and b/luqj-damo/src/main/resources/1.png differ diff --git a/luqj-damo/src/main/resources/11.bmp b/luqj-damo/src/main/resources/11.bmp new file mode 100644 index 0000000..ad8acb9 Binary files /dev/null and b/luqj-damo/src/main/resources/11.bmp differ diff --git a/luqj-damo/src/main/resources/2.bmp b/luqj-damo/src/main/resources/2.bmp new file mode 100644 index 0000000..3aa4c39 Binary files /dev/null and b/luqj-damo/src/main/resources/2.bmp differ diff --git a/luqj-damo/src/main/resources/test1.txt b/luqj-damo/src/main/resources/test1.txt new file mode 100644 index 0000000..6dfc5ec --- /dev/null +++ b/luqj-damo/src/main/resources/test1.txt @@ -0,0 +1 @@ +2411025E5A6D4A290522A474AA927E12004000020051A9351AA0544AFF522A2544F92140200$µÇÈë$0.0.122$12 diff --git a/pom.xml b/pom.xml index 5c30d51..b8b9717 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ 1.3.0 1.2.75 5.6.0 - 5.7.0 + 5.13.0 2.5 1.3.3 3.2.2 @@ -236,6 +236,7 @@ luqj-djl luqj-ec luqj-javacv + luqj-damo pom diff --git a/snapshot.jpg b/snapshot.jpg new file mode 100644 index 0000000..a66a533 Binary files /dev/null and b/snapshot.jpg differ diff --git a/snapshot1.jpg b/snapshot1.jpg new file mode 100644 index 0000000..d4d7e2f Binary files /dev/null and b/snapshot1.jpg differ