Harvest Golem 17 Posted October 21, 2020 Share Posted October 21, 2020 Hello, I need some help with this. I'm using this code: wManager.Wow.Memory.WowMemory.Memory.SetForegroundWindowInt32((int)wManager.Wow.Memory.WowMemory.Memory.WindowHandle); but it works randomly, does not always work, and I do not understand why. @Droidz what kind of code are you using in this button? Quote Link to post Share on other sites
TheSmokie 232 Posted October 21, 2020 Share Posted October 21, 2020 Just out of Curiosity, why do you need this for botting? Quote Link to post Share on other sites
Harvest Golem 17 Posted October 22, 2020 Author Share Posted October 22, 2020 I need this to capture desktop for logging events and incidents from the window I need. Quote Link to post Share on other sites
Droidz 2494 Posted October 22, 2020 Share Posted October 22, 2020 Hi, robotManager.Helpful.Display.ShowWindow(obj.CurrentWowProcess.MainWindowHandle); public static void ShowWindow(IntPtr mainWindowHandle) { Native.ShowWindow(mainWindowHandle, Native.SwRestore); Native.SetForegroundWindow(mainWindowHandle); } Quote Link to post Share on other sites
Harvest Golem 17 Posted October 22, 2020 Author Share Posted October 22, 2020 8 hours ago, Droidz said: Hi, robotManager.Helpful.Display.ShowWindow(obj.CurrentWowProcess.MainWindowHandle); public static void ShowWindow(IntPtr mainWindowHandle) { Native.ShowWindow(mainWindowHandle, Native.SwRestore); Native.SetForegroundWindow(mainWindowHandle); } The name 'obj' does not exist in the current context, please can I ask for the reference for 'obj'? Cant find where the CurrentWowProcess located in the libraries. Quote Link to post Share on other sites
Droidz 2494 Posted October 23, 2020 Share Posted October 23, 2020 robotManager.Helpful.Display.ShowWindow(wManager.Wow.Memory.WowMemory.Memory.GetProcess().MainWindowHandle); Quote Link to post Share on other sites
79135 4 Posted December 28, 2020 Share Posted December 28, 2020 Hello, how to get position of window wow at the desktop? i need it for: if top left 1720 , 0 then goto first place, if another window have 1520, 0 then goto second place. Quote Link to post Share on other sites
Droidz 2494 Posted December 28, 2020 Share Posted December 28, 2020 Hello, you have robotManager.Helpful.Mouse.CurseurWindowPosition(IntPtr mainWindowHandle, int posX, int posY) and robotManager.Helpful.Mouse.CurseurWindowPercentagePosition(IntPtr mainWindowHandle, int percentageX, int percentageY) Look methods in robotManager.Helpful.Mouse and robotManager.Helpful.Display (but simulate click works badly and you need wow window in foreground) 79135 1 Quote Link to post Share on other sites
79135 4 Posted December 28, 2020 Share Posted December 28, 2020 2 hours ago, Droidz said: Hello, you have robotManager.Helpful.Mouse.CurseurWindowPosition(IntPtr mainWindowHandle, int posX, int posY) and robotManager.Helpful.Mouse.CurseurWindowPercentagePosition(IntPtr mainWindowHandle, int percentageX, int percentageY) Look methods in robotManager.Helpful.Mouse and robotManager.Helpful.Display (but simulate click works badly and you need wow window in foreground) Oh, yes, im stupid) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.