![]() I have also tried to use the MeMu emulator but I get the same results. I can set the BlueStacks emulator to use either OpenGL or DircetX as it's "Engine" it makes no difference at all. The entire project works fine on the native Windows version, all I have done so far is adjust the program to use the BlueStacks window which it does. SecondBSWin = FindWindowEx(foregroundWindow, IntPtr.Zero, "WindowsForms10.Window.8.app.0.34f5582_r6_ad1", "BlueStacks Android PluginAndroid") IntPtr foregroundWindow = FindWindow("HwndWrapper", "BlueStacks") ![]() GetWindowRect(ForthBSWin, ref rectangle) ThirdBSWin = FindWindowEx(SecondBSWin, IntPtr.Zero, ".0.34f5582_r6_ad1", null) įorthBSWin = FindWindowEx(ThirdBSWin, IntPtr.Zero, "BlueStacksApp", "_ctl.Window") SecondBSWin = FindWindowEx(intPtr, IntPtr.Zero, "WindowsForms10.Window.8.app.0.34f5582_r6_ad1", "BlueStacks Android PluginAndroid") IntPtr intPtr = FindWindow("HwndWrapper", "BlueStacks") This is what I tried to drill down to the child window" public GameWindow(int titleHeight) Graphics.CopyFromScreen(new Point(rectangle.Left, rectangle.Top), Point.Empty, rectangle.Size) īitmap.Save(Path.Combine(path, "UT" + () + ".jpg")) Using (Graphics graphics = Graphics.FromImage(bitmap)) Rectangle rectangle = new Rectangle(Left, Top, width, height) IntPtr foregroundWindow = FindWindow("ApplicationFrameWindow", "Game Window") īitmap bitmap = new Bitmap(Width, Height) Height = rectangle.Bottom - rectangle.Top Width = rectangle.Right - rectangle.Left IntPtr intPtr = FindWindow("ApplicationFrameWindow", "Game Window") public GameWindow(int titleHeight)įorm1.Rect rectangle = default(Form1.Rect) This is the code that works with native Windows version of the game. ![]() The game is a port from an Android game and the Windows version is not receiving updates anymore so I want to run the Android version which is newer using BlueStacks on my PC. The code works fine when the target game is running on the version installed from the Windows App Store.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |