5,276,801 members and growing! (15,441 online)
Email Password   helpLost your password?
Web Development » Trace and Logs » Debug and Tracing     Intermediate

Enhancement for the cool Minesweeper Memory Reader

By jasonee

This is a little enhancement so you can simply highlight the mines on minesweeper while you play.
C#, VC7, C++Windows, .NET, .NET 1.0, Win2K, WinXP, Visual Studio, Dev

Posted: 14 May 2003
Updated: 14 May 2003
Views: 29,740
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
6 votes for this Article.
Popularity: 3.00 Rating: 3.86 out of 5
2 votes, 33.3%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
0 votes, 0.0%
4
4 votes, 66.7%
5

Sample Image - minereader_enhanced.jpg

Introduction

This is just a few enhancements to the frmMain.cs for the cool project located here. Simply download that project first, and replace the frmMain in the ProcessMemoryReaderLib\MineSweeperReader directory with this one.

The main purpose is to include a checkbox to make the form transparent, and instead of drawing the little mines, it highlights where the mines are red. The result is you can overlay the form directly on minesweeper and play the game while it shows you where the mines are, and you can still flag the mines by right-clicking as normal.

Another small enhancement was to include all the buttons on a Windows Forms Panel, so that when you re-read the minesweeper memory, it is not so slow to erase all of the previous buttons before redrawing.

Notes

If you accidentally click on the red border while trying to flag a mine (or any other time), it will bring the focus away from minesweeper and back to the application... just click on a transparent region again and you're on your way.

Also, if the transparency is not working correctly (i.e. - you see Lime, my transparent color of choice, or when you click, the app gets the click instead of minesweeper which should receive the click, while behind the transparent form), then you probably need to turn off 32-bit color and drop down to 24-bit or 16-bit (or 256 if you're getting tired of all this new-fangled color crap). This is from my experience, I don't know what causes the problem.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

jasonee



Occupation: Web Developer
Location: United States United States

Other popular Trace and Logs articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 4 of 4 (Total in Forum: 4) (Refresh)FirstPrevNext
Subject  Author Date 
Generalhaimemberdivyabhat19:32 30 Apr '08  
GeneralTransparency error fix [modified]membervb_200520:12 17 Mar '07  
GeneralWould like compiled version of this programmemberbrandenads20:04 7 Feb '05  
GeneralRe: Would like compiled version of this programmemberjasonee10:40 19 Aug '05  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 14 May 2003
Editor: Smitha Vijayan
Copyright 2003 by jasonee
Everything else Copyright © CodeProject, 1999-2008
Web18 | Advertise on the Code Project