

Minesweeper is a puzzle game that became a standard feature on computers with an operating system of Windows 3.1 onwards. Play at three different difficulty levels: Beginner, Intermediate, and Expert.I've also attempted to directly access dialogs by name with the code I was able to determine via inspect.exe to no success. Another idea is that I see conflicting UIA and win32 types, alternating between backends in Pywinauto yielded nothing. Suspicions: The first is that this, being a Microsoft product, is simply inaccessible through the traditional means of Pywinauto. I am sure the program is locating the right process and window, given the process ID and window dimensions match between inspect and pywinauto. I expect to see a list of groups, a menu bar, and a title bar to appear in one of the outputs (given inspect's results): acknowledging they are recognized by pywinauto, yet I'm given nothing.

Mswpr.child_window().print_control_identifiers()Īfter fiddling with this for hours, I'm still not sure what I'm missing. My code is as such: app = pywinauto.Application().connect(class_name="Minesweeper") Problem: I can't seem to detect dialog items nor interact with them using Pywinauto, yet I can tell from inspect they are clearly there.Ģ) Inspect.exe showing the process ID - which matches pywinauto's - and all relevant childrenģ) Results of Print_Control_Identifiers() on the window and the child. I'm trying to develop a solver for good ole' Minesweeper, but running into a hitch.Įnvironment: I setup Python 3.4.6 (圆4) and am using Pywinauto 0.61 and the old Windows 7 Minesweeper from Winaero's "Windows 7 games for Windows 10".
