Re: automate minesweeper with python
On Thu, Jul 1, 2010 at 7:17 PM, Terry Reedy tjre...@udel.edu wrote: Did you actually try it? Though skeptical, I did, briefly, until I decided that it probably should have been dated April 1. There is no way to enter text into minesweeper, nor to make it full screen, nor, as far as I know, for it to toggle pixels outside its window. Your objections are invalid. The fact that Minesweeper does not have a text control does not mean that it cannot receive keypresses, and the exterior pixel could hypothetically be implemented as a 1-pixel borderless window belonging to the Minesweeper application. There are enough details from enough different persons on the web, with few if any dissenting opinions, that I'm inclined to believe it probably works. I can't test it myself, though, because it apparently no longer works in Windows Vista or 7, and I no longer have an XP box around. -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
Just tested it in XP, it works. -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
Terry Reedy wrote: On 7/1/2010 6:42 PM, Emile van Sebille wrote: On 7/1/2010 2:52 PM Jay said... pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. ... or, you could always win... http://www.daniweb.com/forums/thread186209.html Did you actually try it? Though skeptical, I did, briefly, until I decided that it probably should have been dated April 1. There is no way to enter text into minesweeper, nor to make it full screen, nor, as far as I know, for it to toggle pixels outside its window. The pixel can be hard to see depending on your background colors and whether your screen is adjusted correctly (I could see the white, but not the black). But on XP Pro is still works. ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
Ethan Furman ha scritto: Terry Reedy wrote: On 7/1/2010 6:42 PM, Emile van Sebille wrote: On 7/1/2010 2:52 PM Jay said... pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. ... or, you could always win... http://www.daniweb.com/forums/thread186209.html Did you actually try it? Though skeptical, I did, briefly, until I decided that it probably should have been dated April 1. There is no way to enter text into minesweeper, nor to make it full screen, nor, as far as I know, for it to toggle pixels outside its window. The pixel can be hard to see depending on your background colors and whether your screen is adjusted correctly (I could see the white, but not the black). But on XP Pro is still works. works for me too bye -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On 7/1/2010 10:18 PM, Emile van Sebille wrote: On 7/1/2010 6:17 PM Terry Reedy said... On 7/1/2010 6:42 PM, Emile van Sebille wrote: On 7/1/2010 2:52 PM Jay said... pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. ... or, you could always win... http://www.daniweb.com/forums/thread186209.html Did you actually try it? Though skeptical, I did, briefly, until I decided that it probably should have been dated April 1. There is no way to enter text into minesweeper, nor to make it full screen, nor, as far as I know, for it to toggle pixels outside its window. Yes. It works. Thanks all. I tried again with other windows minimized so that the upper left pixel is medium brown from the wallpaper, and I can make out the white pixel. A maximized unfocued background window has that pixel normally black surrounded by light blue pixels that make one white pixel harder to see for imperfect eyes. Live, post errors, and learn ;-). -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On Jul 2, 6:17 am, superpollo ute...@esempio.net wrote: Ethan Furman ha scritto: Terry Reedy wrote: On 7/1/2010 6:42 PM, Emile van Sebille wrote: On 7/1/2010 2:52 PM Jay said... pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. ... or, you could always win... http://www.daniweb.com/forums/thread186209.html Did you actually try it? Though skeptical, I did, briefly, until I decided that it probably should have been dated April 1. There is no way to enter text into minesweeper, nor to make it full screen, nor, as far as I know, for it to toggle pixels outside its window. The pixel can be hard to see depending on your background colors and whether your screen is adjusted correctly (I could see the white, but not the black). But on XP Pro is still works. works for me too I'm confirming that it even works with Wine emulator in Linux. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On Jul 2, 2:13 pm, Terry Reedy tjre...@udel.edu wrote: On 7/1/2010 10:18 PM, Emile van Sebille wrote: On 7/1/2010 6:17 PM Terry Reedy said... On 7/1/2010 6:42 PM, Emile van Sebille wrote: On 7/1/2010 2:52 PM Jay said... pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. ... or, you could always win... http://www.daniweb.com/forums/thread186209.html Did you actually try it? Though skeptical, I did, briefly, until I decided that it probably should have been dated April 1. There is no way to enter text into minesweeper, nor to make it full screen, nor, as far as I know, for it to toggle pixels outside its window. Yes. It works. Thanks all. I tried again with other windows minimized so that the upper left pixel is medium brown from the wallpaper, and I can make out the white pixel. A maximized unfocued background window has that pixel normally black surrounded by light blue pixels that make one white pixel harder to see for imperfect eyes. Live, post errors, and learn ;-). -- Terry Jan Reedy- Hide quoted text - - Show quoted text - OK, so how does a program read the pixel? -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On 7/2/2010 2:38 PM Jay said... OK, so how does a program read the pixel? Well, you start with a screen capture utility. I'd check is pywinauto provides that access... Emile -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. On Jun 30, 6:51 pm, Paul McGuire pt...@austin.rr.com wrote: On Jun 30, 6:39 pm, Jay jayk...@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 can interact with a Windows application using pywinauto (http:// pywinauto.openqa.org/). Sounds like a fun little project - good luck! -- Paul -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On 7/1/2010 2:52 PM Jay said... pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. ... or, you could always win... http://www.daniweb.com/forums/thread186209.html Emile PS -- in about '77 I worked with a guy that had XYZZY as his personalized license plate... -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On 7/1/2010 6:42 PM, Emile van Sebille wrote: On 7/1/2010 2:52 PM Jay said... pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. ... or, you could always win... http://www.daniweb.com/forums/thread186209.html Did you actually try it? Though skeptical, I did, briefly, until I decided that it probably should have been dated April 1. There is no way to enter text into minesweeper, nor to make it full screen, nor, as far as I know, for it to toggle pixels outside its window. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On 7/1/2010 6:17 PM Terry Reedy said... On 7/1/2010 6:42 PM, Emile van Sebille wrote: On 7/1/2010 2:52 PM Jay said... pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. ... or, you could always win... http://www.daniweb.com/forums/thread186209.html Did you actually try it? Though skeptical, I did, briefly, until I decided that it probably should have been dated April 1. There is no way to enter text into minesweeper, nor to make it full screen, nor, as far as I know, for it to toggle pixels outside its window. Yes. It works. Emile -- http://mail.python.org/mailman/listinfo/python-list
automate minesweeper with python
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. -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On Jul 1, 7:39 am, Jay jayk...@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/ -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On Jun 30, 6:01 pm, Justin Ezequiel justin.mailingli...@gmail.com wrote: On Jul 1, 7:39 am, Jay jayk...@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. -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
Jay wrote: On Jun 30, 6:01 pm, Justin Ezequiel justin.mailingli...@gmail.com wrote: On Jul 1, 7:39 am, Jay jayk...@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. -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On Wed, Jun 30, 2010 at 7:15 PM, Jay jayk...@yahoo.com wrote: On Jun 30, 6:01 pm, Justin Ezequiel justin.mailingli...@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. -- http://mail.python.org/mailman/listinfo/python-list
Re: automate minesweeper with python
On Jun 30, 6:39 pm, Jay jayk...@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 can interact with a Windows application using pywinauto (http:// pywinauto.openqa.org/). Sounds like a fun little project - good luck! -- Paul -- http://mail.python.org/mailman/listinfo/python-list