spy++

How does spy++ find out what is the window at a certain point on the screen?

二次信任 提交于 2019-12-06 00:59:48
问题 I am curious how spy++ Finder Tool finds out the window handle for the window over which the mouse is. Is there any WIN32 function for getting the handle of the topmost window that occupies a certain pixel on the display? 回答1: There is a WindowFromPoint() function. 回答2: Here is a pretty complete example of how to implement the spy++ finder. http://www.codeproject.com/KB/dialog/windowfinder.aspx 回答3: There is some nice information on the internals of Spy++ here: http://blogs.msdn.com/b/vcblog

Is there a Qt widget to browse the hierarchy of widgets in an app (similar to Spy++)?

早过忘川 提交于 2019-12-05 18:24:19
We've got an app with a complex hierarchy of widgets and I want to be able to browse this hierarchy, view and edit properties (such as size) in a similar manner to Spy++. It doesn't need to be running in an external app, if there is a widget that can display this information. So the question is, does such a mythical beast exist? you can use Gammaray for spy Widget and signal slot and timers and resource and etc. Gammaray is very powerfull tool for spy Qt Application The usual approach is to build such a beast in-house, using the introspection APIs, and walking the QWidget parent-child

Why Control.FromHandle(IntPtr) returns null in one hooked process and returns valid object of “Form”? in another hooked process?

旧城冷巷雨未停 提交于 2019-12-05 10:46:26
I am facing a problem related to get out all the controls from some hooked process. My SpyDll launched into hooked process sucessfully, But when I check the statement Control control = Control.FromHandle(MainWindowHandle), it returns null into control object where "MainWindowhandle"is just a native main window handle of that hooked process, which you always take from .NET "Process" class after launching that process. But STRANGLY it happens that in some other hooked process which is the same C# .NET application, it returns valid object of Main "WinForm". So why it will not work in above case?

Spy++ for PowerBuilder applications

大兔子大兔子 提交于 2019-12-05 06:18:46
I'm trying to write a tool which lets me inspect the state of a PowerBuilder-based application. What I'm thinking of is something like Spy++ (or, even nicer, 'Snoop' as it exists for .NET applications) which lets me inspect the object tree (and properties of objects) of some PowerBuilder-based GUI. I did the same for ordinary (MFC-based) applications as well as .NET applications already, but unfortunately I never developed an application in PowerBuilder myself, so I'm generally thinking about two problems at this point: Is there some API (preferably in Java or C/C++) available which lets one

How does Spy++ construct its process list?

会有一股神秘感。 提交于 2019-12-04 11:37:58
TL;DR - How does the Spy++ tool really construct its process list? Stage We have an MFC desktop application (running on Windows XP) that is hanging in that it doesn't react to any user input anymore. It is redrawn when switching to it via alt-tab however. (It does receive WM_SETFOCUS , WM_ACTIVATE , etc. It apparently does not receive any mouse or keyboard messages.) Since the app is hanging in some limbo, we pulled a few process dumps, but these were of little help so far. Enter: Spy++ We used Spy++ to find the information I gave above about the window messages this application seems to be

C# Hiding an application from the taskbar

那年仲夏 提交于 2019-12-04 00:06:15
问题 I have been struggling to hide another application from the taskbar from my application. I have been using the SetWindowLong function in order to set/remove WS_EX_APPWINDOW on the extended style. I have tried both setting and removing the property individually as well as taking the current WindowLong, and removing/adding it to that one, like so: SetWindowLong(pMainWindow, GWL_EXSTYLE, GetWindowLong(pMainWindow) & WS_EX_APPWINDOW); And tried removing it like so: SetWindowLong(pMainWindow, GWL

How do I get Spy++ with Visual Studio 2017?

十年热恋 提交于 2019-12-03 02:09:55
问题 Background I am looking for Spy++. I believe it should be included in Visual Studio 2017 since the latest Visual Studio help content references it: https://docs.microsoft.com/en-us/visualstudio/debugger/introducing-spy-increment. Problem I have just done a clean install of Visual Studio 2017, but Spy++ does not exist in the file system. I can't find it. Question So I guess I need to select certain "workflows" when installing Visual Studio to have Spy++ installed? Anyone know if this is

Why can't Spy++ see messages sent to UWP apps?

允我心安 提交于 2019-12-02 23:41:33
问题 While we all got tangled up in this topic, it came to light that, while UWP apps do have top level windows and you can send (sensible) messages to them (*), and these do get through and have the expected effect, Spy++ doesn't ever seem to see those messages, or indeed any others that Windows itself might send. Can anyone shed any light on this? Just to provide a bit of background, Spy has no problem locating and inspecting these windows (the 'Finder Tool' works just fine) but message logging

WinApi - How to obtain SHELLDLL_DefView

ぃ、小莉子 提交于 2019-12-02 21:15:51
问题 I am trying to obtain handle to SHELLDLL_DefView. So, I have this code. HWND hProgman = FindWindow(L"Progman", NULL); HWND hWnd = FindWindowEx(hProgman, 0, L"SHELLDLL_DefView", NULL); Eveyrtihing works OK, until I change in Windows desktop brackground to slideshow. Then when I search with spy++ hierarchy of the windows, than SHELLDLL_DefView has another parent. Now it is #32769 (Desktop) -> WorkerW -> SHELLDLL_DefView. So I can't find it. Problem is that when I try HWND desktop =

Managed version of Spy++ Tool?

落花浮王杯 提交于 2019-11-30 05:27:12
Awhile ago, I needed a Spy++ like application for some .NET UI debugging. I found an old MSDN article with a sample that does things similarly, But that stopped working in newer .NET Framework versions. Does anyone know of/wrote an application that mimics Spy++ behavior and works on Managed applications (rather, shows Managed events/properties) and works on newer .NET Frameworks, up to 4.0? I can recommend UISpy , a spy utility which uses the UI Automation framework to transparently spy on plain Win32 applications as well as Windows Forms or WPF . It's a bit hard to find UISpy, but I