From: Jay on 30 Jun 2010 19:39 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 30 Jun 2010 21:01 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 30 Jun 2010 21:15 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 30 Jun 2010 21:38 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 30 Jun 2010 21:49 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.
|
Next
|
Last
Pages: 1 2 3 4 Prev: Ignorance and Google Groups (again) Next: Composition of functions |