Jump to content

Set foreground/focus wow window


Pudge

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...