Jump to content

Set foreground/focus wow window


Pudge
 Share

Recommended Posts

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? 

image.png

Link to comment
Share on other sites

  • Pudge changed the title to Set foreground/focus wow window

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
Share on other sites

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
Share on other sites

  • 2 months later...

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)

 

 

Link to comment
Share on other sites

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
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...