From: Jay on
I would like to create a python script that plays the Windows game
minesweeper.

The python code logic and running minesweeper are not problems.
However, "seeing" the 1-8 in the minesweeper map and clicking on
squares is. I have no idea how to proceed.
From: Justin Ezequiel on
On Jul 1, 7:39 am, Jay <jayk...(a)yahoo.com> wrote:
> I would like to create a python script that plays the Windows game
> minesweeper.
>
> The python code logic and running minesweeper are not problems.
> However, "seeing" the 1-8 in the minesweeper map and clicking on
> squares is. I have no idea how to proceed.

you may want to have a look at sikuli
http://groups.csail.mit.edu/uid/sikuli/
From: Jay on
On Jun 30, 6:01 pm, Justin Ezequiel <justin.mailingli...(a)gmail.com>
wrote:
> On Jul 1, 7:39 am, Jay <jayk...(a)yahoo.com> wrote:
>
> > I would like to create a python script that plays the Windows game
> > minesweeper.
>
> > The python code logic and running minesweeper are not problems.
> > However, "seeing" the 1-8 in the minesweeper map and clicking on
> > squares is. I have no idea how to proceed.
>
> you may want to have a look at sikulihttp://groups.csail.mit.edu/uid/sikuli/

Intresting, but I actually have something already in python I want to
modify.
From: MRAB on
Jay wrote:
> On Jun 30, 6:01 pm, Justin Ezequiel <justin.mailingli...(a)gmail.com>
> wrote:
>> On Jul 1, 7:39 am, Jay <jayk...(a)yahoo.com> wrote:
>>
>>> I would like to create a python script that plays the Windows game
>>> minesweeper.
>>> The python code logic and running minesweeper are not problems.
>>> However, "seeing" the 1-8 in the minesweeper map and clicking on
>>> squares is. I have no idea how to proceed.
>> you may want to have a look at sikulihttp://groups.csail.mit.edu/uid/sikuli/
>
> Intresting, but I actually have something already in python I want to
> modify.

There's a question here about capturing a window as an image:

http://bytes.com/topic/python/answers/500826-screen-capturing-windows

You could then see if you could identify the squares.
From: Ian Kelly on
On Wed, Jun 30, 2010 at 7:15 PM, Jay <jaykoni(a)yahoo.com> wrote:
> On Jun 30, 6:01 pm, Justin Ezequiel <justin.mailingli...(a)gmail.com>
> wrote:
>> you may want to have a look at sikulihttp://groups.csail.mit.edu/uid/sikuli/
>
> Intresting, but I actually have something already in python I want to
> modify.

You should be able to use it with Jython. Or if you absolutely must
run CPython, JPype.