Several methods of Program-assisted mine clearance

Source: Internet
Author: User

ProgramMethods for assisting mine clearance
2003.9.6

My hands are stupid and I am not afraid of jokes. Mining mines has never been less than 140 (since windows3.1), so sometimes I want to develop a program to "assist ". The following are several methods you have come up.

Method 1: Let the program dig for us

First, manually open a blank space, then start our program, read the window interface DC of the mine clearance program, and then perform simple image extraction, extract all the numbers in the open space and designAlgorithmCalculate the boxes with mines, and send a mouse message (left and right click) to the window for mine clearance. Then, you can view the window where the Mine Clearance page is displayed, manual intervention. If the algorithm is not well written, it may be slow (but it is much faster than I did ).
A few days ago, on the BBS in Tsinghua, I saw a program written in Java. The specific location is hard to remember.

Method 2: Open the GEO chart and we dig it by ourselves.

After starting the Mine Clearance Program, start our program and do two things: 1. Set the Windows System of the mine clearance program to transparent (the Alpha value is slightly greater than 0, can only be on Win2k, XP), make our program interface is exactly the same as mine clearance, but not transparent, and then put behind the window of the mine clearance program. 2. Read internal data from the process address of the mine clearance program, get the location of each mine, and then display it on the Interface of our program. Haha, do you think the Mine Map has already opened, we only need to kill the mine-free process.
Csdn hasArticleHow to Get map data from a mine clearance process: http://www.csdn.net/develop/Article/19/19921.shtm
Http://expert.csdn.net/Expert/topic/2188/2188775.xml? Temp =. 1479456.

Method 3: Open the map and dig it yourself.

Our program obtains map data from the mine clearance process, and then sends a bunch of mouse messages (left and right click) to the window of the mine clearance program to dig all mines directly. It may be very fast, but it's not fun?

Method 4: prank

Our program obtains map data from the mine clearance process, then generates the result interface (Bitmap) that has been fully mined by the mine, and then directly writes the bitmap to the DC of the window of the mine clearance program, what will happen? If you click the mouse, the mine is fully open, and the timer is still jumping?

Method 5: stop the timer

This is a method I have actually done. When the program is running, a message hook is inserted into the system to change the wm_timer of the window of the mine clearance program. We want to start timing and change it back. In this way, I can easily judge a mine without having to worry about the timer, but in the end I find that mine clearance has become a mathematical judgment of less than 10.

Method 6: Let the Mine Clearance Program dig

When our program runs, we replace a certain disconnection of the mine clearance process.CodeOr put a hook in, and the result is that when you click the small yellow face, the map is fully dug. I just guess there is no practical experience in this method and it can only be estimated to be feasible.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.