Pudge 24 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? Link to comment https://wrobot.eu/forums/topic/12597-set-foregroundfocus-wow-window/ Share on other sites More sharing options...
TheSmokie 242 Posted October 21, 2020 Share Posted October 21, 2020 Just out of Curiosity, why do you need this for botting? Link to comment https://wrobot.eu/forums/topic/12597-set-foregroundfocus-wow-window/#findComment-60289 Share on other sites More sharing options...
Pudge 24 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. Link to comment https://wrobot.eu/forums/topic/12597-set-foregroundfocus-wow-window/#findComment-60292 Share on other sites More sharing options...
Droidz 2742 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); } Link to comment https://wrobot.eu/forums/topic/12597-set-foregroundfocus-wow-window/#findComment-60297 Share on other sites More sharing options...
Pudge 24 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. Link to comment https://wrobot.eu/forums/topic/12597-set-foregroundfocus-wow-window/#findComment-60304 Share on other sites More sharing options...
Droidz 2742 Posted October 23, 2020 Share Posted October 23, 2020 robotManager.Helpful.Display.ShowWindow(wManager.Wow.Memory.WowMemory.Memory.GetProcess().MainWindowHandle); Link to comment https://wrobot.eu/forums/topic/12597-set-foregroundfocus-wow-window/#findComment-60314 Share on other sites More sharing options...
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. Link to comment https://wrobot.eu/forums/topic/12597-set-foregroundfocus-wow-window/#findComment-60901 Share on other sites More sharing options...
Droidz 2742 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 Link to comment https://wrobot.eu/forums/topic/12597-set-foregroundfocus-wow-window/#findComment-60902 Share on other sites More sharing options...
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) Link to comment https://wrobot.eu/forums/topic/12597-set-foregroundfocus-wow-window/#findComment-60904 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now