|
|
Comments and Discussions
|
|
 |
|

|
That is a very nice program, I really enjoyed reading the source code. Well done.
Question: Would it be possible to modify a sub-window so that I can move it outside of the main window?
Thanks.
|
|
|
|

|
Hi,
very good work you did with this.
I'd like to know if it is possible to get the instance of the ClassName on a form.
Example there is 3 TButtons on a form, I'd like to get the instance of each of them.
Just like: TButton1, TButton2, TButton3.
Regards,
- Charles
|
|
|
|
|

|
Hi,
Me too was trying to create some application like this and in between I had a problem in finding the window just below the mouse. So I searched the net and finally reached here. But your application also have same problem. Check the following secnario.
In a dialog place a frame and label control one over the other( the label should be kep inside the frame ).
Arrange the tab order so that frame is first and label is second. Now your application cannot identify the label which is inside the frame. But SPY++ does. I have found some other applications like WinID also finds this window. Do you have any solutions?
|
|
|
|

|
Is it possible to programatically access the functionality of Spy++ - is there an interface to it that I could access. I would like to write an application that integrates at the UI level with a standard 'out of the box' application and was looking to use the content returnd by Spy++ to do so.
Thanks
|
|
|
|

|
Can u help me out. There were some errors, I did removed them but the executable doesnt executes, in debug or release configuration and even as a release standalone exe.
|
|
|
|

|
I can get the textbox caption. However, I cannot get a label caption in a form. It only can get the caption from a form. How can i get a caption of a label within a form?
Thank you for you help.
Tim
|
|
|
|

|
I am trying to disable the google earth toolbar, and when I click "disable" on the toolbar it goes invisible (assuming thats showwindow()), but when you click the area the toolbar is still active. what other API functions go into your disable? great tool though
|
|
|
|
|

|
Hello, Do you know if there are any application similar that, for msdos operating system?
I want to capture a data for a msdos windows. I have installed windows xp, and the vmware. I want to capture some data in it, have you any idea how can I do that?
Excuseme but my english is very bad.
|
|
|
|

|
Have you this application in vb.net?
I want to do something similar for another application and I want to use your idea, but I don't anything about Visual C++.
Excuse but my english is very very bad.
|
|
|
|

|
Hi,
You can write the similar code in vb. net, unfortunately I am not so perfect to write vb. net code, so I can not help you. In order to rewrite in vb, you should pay attention to the API functions which were used in sample code.
Regard,
Ashkbiz
|
|
|
|
|
|

|
Hi, is posible modify window title name ?
Is posible when appz is running or is posible when my Program launch the external .exe program ?
You know some issue, How make code for Hook Alert or Protect the hook Specify .exe program in memory ?
Thank you.
|
|
|
|

|
Hi,
Regarding modify window title name, you are seeing that it is possible by this win spy tools.
Regarding second question, during running , you can change by spying the windows handle and change the title name. Before running time, you can modify it by tracing the position of title name in .data section by an appropriate debugger like ollydbg (http://www.ollydbg.de) and modify the data... or maybe the .rsrc section and changing the string table ...
Regarding third question, there is some issues, but it is beyond to explain in some sentences, probably if I had time, I would explain them in a complete text. However, you can find so much information on Web, just look at the sites related to reverse engineering and you will find the answer...
Regards,
Ashkbbiz
|
|
|
|

|
Hey, nice app.
On line 276 of TabCtrl.cpp there is:
if(BACKdwExtendedStyle=dwExtendedStyle)
This needs to be:
if(BACKdwExtendedStyle!=dwExtendedStyle)
Otherwise, when I try to turn off all the extended styles (as I did), nothing happens since the expression evaluates to zero.
Cheers.
|
|
|
|

|
Hi,
Many Thanks for taking your time to find bug. I will update the code as soon as possible.
Best Regards,
Ashkbiz
|
|
|
|

|
Hi Ashkbiz,
I like the ability to capture the disabled windows, but there seems to be a bug in the code; when you try to enable or disable a Textbox control, it fails.
If you have some spare time please update the code ... I didn't get time to see the code ... I have downloded a lot of tools and codes from CP, and i am just testing them one by one ...
Regards
|
|
|
|

|
this tool save me from the boring "tuning-compile-tuning" work, and It's a good way to study Windows GUI programming.
thanks
|
|
|
|

|
Hi there,
The article is really nice and knowledge enhancer. I saw one problem though. I tried to run this utility on WinXP and changed the "Start" button caption to "START" just to check out.
But the windows sets its style back to what it was originally. i.e. "start" (all lower case).
Is there any reason why does it happen?
Your information will be a great help.
Thanks
|
|
|
|

|
I noticed this also. It seems that after you modify the Start button and then move onto another application to modify, the Start button goes back to it's original state. Almost as if Windowspy is losing hold of the control it has on the start button after it modifies another application. Just a guess.
|
|
|
|

|
Hello
I like your application, great work. Unfortunately, many features you used in coding are not supported on Windows CE. After I have removed and changed some of your code, I got it running and the main dialog shows me the handle and so on. Now I am stuck with the properties dialog. As I am a beginner, I dont really understand your code here. I inserted a GetLastError() and it says 'invalid parameter' after in this:
HWND WINAPI OnSelChanged(HWND hwndDlg)
{
DLGHDR *pHdr = (DLGHDR *) GetWindowLong(hwndDlg, GWL_USERDATA);
int iSel = TabCtrl_GetCurSel(pHdr->hwndTab);
// Destroy the current child dial!og box, if any.
if (pHdr->hwndDisplay != NULL)
DestroyWindow(pHdr->hwndDisplay);
// Create the new child dialog box.
HWND hChild=NULL;
hChild = CreateDialogIndirect(hInst, pHdr->apRes[iSel], hwndDlg,(DLGPROC) ChildDialogProc);
if (hChild != NULL)
pHdr->hwndDisplay = hChild;
else
ShowError(GetLastError());
return(pHdr->hwndDisplay);
}
So I only get an empty tabbed dialog, but no prop pages
Can you help?
Thanks
Josef
|
|
|
|

|
Uuups
I found the eror myself: I replaced so much things and one too much. In
DLGTEMPLATE * WINAPI DoLockDlgRes(LPTSTR lpszResName)
{
HRSRC hrsrc = FindResource(hInst, lpszResName, RT_DIALOG);
HGLOBAL hglb = LoadResource(hInst, hrsrc);
return (DLGTEMPLATE *) LockResource(hglb);
}
I replaced the first hInst by NULL and therefor no resource was loaded.
If anyone is interested, I will post the Windows CE code.
Josef
|
|
|
|

|
Yes, it would interesting to look at it, please post!
|
|
|
|

|
Hi,
Thanks for updating it in Win CE. I am thankful if you would post yout code which works inside Win CE.
Best Regards,
Ashkbiz
|
|
|
|

|
Hello ,
It's Very Urgent.
please can you send me code.
my Email address prabhat.singh@webdunia.net
Prabhat Singh
-- modified at 7:28 Sunday 30th September, 2007
|
|
|
|

|
Pls help!
I am interested in knowing whether there are any chances to locate the "keyboard cursor" location. Finding the top most window is not difficult but I have no idea which control within a child window that got the keyboard focus nor where is the keyboard cursor location.
I wonder whether you have any ideas on
1) which child windows got the keyboard focus,
2) which control within this child window got the keyboard focus and
3) where is the exact location (x,y) the input cursor or keyboard cursor is
Regards,
Joe
|
|
|
|

|
Gotta give you props. 5 Stars. You beat me to the punch. lol, just this weekend I was messing around with one of my other articles, and someone wanted to do Spy++ like window finding/highlighting, so I code up that feature. To let them spy on a window, and then capture it. Since you like this sort of thing, but mine's in C#.
http://www.codeproject.com/useritems/Screen_Capturing.asp
While I was working on it, I was looking at Spy thinking, you know, it'd be fun to make it edit the style bits of a window... and just today I stumble on your article!
I dig the MFC style property box. Good stuff. You did a better job of the cursors, I swiped them from another cursor I found on here. Pretty good stuff man, I like your style.
-Mark
Si vic pacem para bellum - If you want peace, prepare for war
|
|
|
|

|
Hi,
Great little application. What are you plans for Send Messages?
-- Peter
PeterRitchie.com
|
|
|
|

|
Only for using SendMessage() and PostMessage() API!
LRESULT SendMessage( HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
BOOL PostMessage( HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
Ashkbiz
|
|
|
|

|
Well, I would like to thank you personally for developing such a usefull utility for us, and taking your time to write an article...
Now CS_GUESSWHATIAM and WS_ANOTHERWNDSTYLE will be no more cryptic and mysterious for me!
Thanking you again.
Regards,
Mohsin
Polite Programmer
More Object Oriented then C#
|
|
|
|
|

|
Thank you for your attention. It is not so excellent as your description. But your comment inspire me to write more article here.
Ashkbiz
|
|
|
|

|
Really, your Utility is very useful, especially the feature which lacks in MSSpy (i.e. changing of window Style), as it can help me to change Window style/button style at runtime without recompiling or extra coding
Thanks!
However, before ending the post I like to point some problem related design, you can find more about it here[^] and here[^]
"I Think this Will Help"
visit me at http://www.thisisalok.tk
|
|
|
|
|

|
u're too humbled.. thanks for your PE protector! after PE protector will be... haha, PE header repairer..
i have been hearing a lot on yoda, is that u?
from,
-= aLbert =-
|
|
|
|

|
f2 wrote:
thanks for your PE protector! after PE protector will be... haha, PE header repairer..
PE header repairer !? I don't think so! Might be port monitor...
Ashkbiz
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
A Spy tool program like MS Spy++ that lets you capture window controls and modify their properties. Useful for learning window handles and their properties.
| Type | Article |
| Licence | GPL3 |
| First Posted | 10 Feb 2005 |
| Views | 126,145 |
| Bookmarked | 143 times |
|
|