   Anyone use Spy++ ?
  I was inspired by Programmer One''s thread about hacking the password on his little windows app, and I started playing around with the Win32api to be able to write a program that could automatically feed inputs to the app and interact with all the items on the second app''s window.  (Prog One''s original thread here:  Clickster)So anyway, I built the helper app, although I didn''t bother writing the algorithm to generate all possible inputs (the password was 20 characters long with 15 possible different characters - roughly 3 billion billion combinations ).  I was having some trouble getting the handle to the app''s window, mostly because P1 was sneaky and didn''t have a window caption or obvious classname for the window.  I was able to get the handle by setting the cursor position over the window and using the api function WindowFromPoint (this is in vb btw).  Anyhoo, I wanted to be able to grab the window handle by the class name because I have another project in mind that I''ll want this for, but I couldn''t figure out what the classname was... until I used Spy++Spy++ comes with .Net Studio (under tools if you want to try it), and it''s one cool little application.  It will give you information on all windows, processes and threads currently running on your machine including handles, child/parent windows, pid, styles, threads, etc.  It''s awesome.I''m really excited about learning api stuff, because I''ve had a desire for years to write a program that can play Freecell - but I didn''t know jack about how to do it.  They say you can win every board in Freecell, so I want to write a program that could do it!  Or at least make a damned decent attempt.  So that''s my new project.  I''m going to use Spy++ to see just how much information I can get out of Freecell, and whether I''ll be able to get the card information to tell my program how to play and to write some heuristics to rate board positions.  I didn''t want to have to re-write the game to write my player because that wouldn''t be nearly as much fun..endnovel 
  Yeah, it''s a neat little app - though if I remember correctly, it was in my MSVC v1.0 package. ;  i believe it has already been shown that all games except one(cant remember the number) are winnable in freecel ;quote:Original post by Xcdcc  i believe it has already been shown that all games except one(cant remember the number) are winnable in freecel   Wh..W..Whooo..Who is the idiot, who has nothing to do with his life?!   "C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!";quote:Original post by CPPMaster Poppet  quote:Original post by Xcdcc   i believe it has already been shown that all games except one(cant remember the number) are winnable in freecel   Wh..W..Whooo..Who is the idiot, who has nothing to do with his life?!   "C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"  im sure you can appreciate that statement.   ;quote:Original post by Xcdcc  i believe it has already been shown that all games except one(cant remember the number) are winnable in freecel   in windows XP -1 and -2 are impossible! (yes you can select them) ;quote:Original post by Xcdcc  i believe it has already been shown that all games except one(cant remember the number) are winnable in freecel   Doesn''t make it any less interesting to me to try and write a program that can do it.  The perfect player if you will. ;  Spy++ program came from Visual C++. VB programmers didn''t get it unless they have a Visual Studio installed  (I don''t know if they included that in VB.NET -- just VB.NET) ;  ... until you had used WinSpy++. 