Advertisement Jump to content
Sign in to follow this  

Win32 MSG interception under the hood

This topic is 3846 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm just looking to know if it's even *possible* to do this, which it may not be... I am interested in performing a game analysis on Solitaire, and I would like to use my solitaire.exe (standard with any modern version of windows) as the simulator instead of having to write my own. I would like to write a program, most likely in C++/Windows, to perform all of the logic that a human player would utilize when playing solitaire. Furthermore, I would like this program to communicate with solitaire.exe through Windows. For example: The program starts by launching solitaire.exe and scanning the cards that are flipped over. Depending on what they are, it will know whether to move piles, or to start turning cards over in the main deck. I have a decent understanding of the Windows API and the messaging system (including the loop and queue). I think that in order to do this a program would need to know ahead of time the names of each handle (solitaire's hInstance, as well as the handles to any GUI controls such as cards or menu items, etc.) it would interact with. I know that this would probably be very complex and well outside my means, but was wondering if it is even possible to do this. I have heard of macro/hotkey programs that do similar things by running scripts, and perhaps it is even possible to accomplish this with batch files...I am not interested in these; strictly executable. Thanks for any input, ply

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!