good day community sir and ladies,
sometimes my bot is angry and make wow read to address which is not readable and wow goes deded crash with saying "no good".
how i can see if wow got deded by bot? i men process is open but not work anymore however bot is stil abel writ to memory.
at the momento i have vari bad solituon:
in manager of object i check every 2 seconds funktion "IsWowCrashed()" with kod liek follow:
case is when wow is angry and say "hey pida i cant red this address" it spawn window with name of "WoW". So i enum all windof with and du search for "WoW" in window name. if bot is happy and find it will get pId of handle. if pId and attached wow pId are together same bot is happy and can say "hey i made crash wow".Code:internal static bool IsWowCrashed() { IntPtr handle = ObjectManager.FindWindow(default(string), "WoW"); uint pId = 0; GetWindowThreadProcessId(handle, out pId); if (pId == BmWrapper.memory.ProcessId) { Process.GetProcessById(BmWrapper.memory.ProcessId).Kill(); return true; } return false; }
but lot problem ocur:
1. what is if multiple "WoW"? FindWindow return one only pid.
2. very slow. cpu not happy with this
3. solution is crap but prolly only idea my brain found