spy++

Why are some items greyed out in Spy++'s Windows view?

ε祈祈猫儿з 提交于 2019-11-30 02:52:03
问题 To modify a window of another program, I need to find a specific SysTreeView32 in it using EnumChildWindows API call. When I inspect the window using Spy++, there are a number of SysTreeView32 's in it but all are greyed out except one, which is the one I'm looking for. The following picture is an example of grey items: Why are the shown items gray and what API call does Spy++ use to know whether it should grey out an item or not? 回答1: Those are just non-visible windows - ie HWNDs that don't

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

久未见 提交于 2019-11-29 22:05:59
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 correct? And if so, which workflow/feature do I need? Setup Windows 10 Visual Studio Professional 2017 15.1

How can I detect if a thread has windows handles?

不羁的心 提交于 2019-11-28 10:27:06
How can I programmatically detect if a thread has windows handles on it for a given process? spy++ gives me this information but I need to do it programmatically. I need to do this in C#, however the .net diagnostics libs don't give me this information. I imagine spy++ is using some windows api call that I don't know about. I have access to the code of the system I'm trying to debug. I want to embed some code called by a timer periodically that will detect how many thread contain windows handles and log this info. thanks I believe you can use win api functions: EnumWindowsProc to iterate

C# get child handles using FindWindowEx by name and ordinal number

风流意气都作罢 提交于 2019-11-28 09:29:21
According to http://msdn.microsoft.com/en-us/library/ms633500(v=vs.85).aspx I define FindWindowEx function. using System.Runtime.InteropServices; [DllImport("user32.dll", CharSet=CharSet.Unicode)] static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle); Now I am able to find first handle of "Button" control (get name from Spy++) setting childAfter as IntPtr.Zero . IntPtr hWndParent = new IntPtr(2032496); // providing parent window handle IntPtr hWndButton = FindWindowEx(hWndParent, IntPtr.Zero, "Button", string.Empty); How to get second

Using visual studio's spy++ tool:

自古美人都是妖i 提交于 2019-11-28 09:19:08
问题 I am trying to make a program that will click the button of another program. I have been informed that I need to use spy++ in order to get the ID of the button that I want to click, so I am using it right now. I have found the window which contains the button I wish to get the button ID from (there are 3 buttons in the window). Where in spy++ can I find the specific buttons ID? I looked in the "window properties" of the window that contains the buttons and didn't find it. There are 3 buttons

Is there a Spy++ like utility for WPF?

て烟熏妆下的殇ゞ 提交于 2019-11-28 04:42:13
As a “hardcore” WinForms programmer from a Win32 background I have always used Spy++ to understand what my applications are doing at the UI level including: Seeing what events the controls are sending to each other. Seeing the control tree at run time Finding the control that is drawing part of the display I then often search for the control name in the source code, very useful when you have to change the UI on a large application you don’t know well. So how do I do the same with a WPF application? (You may assume I have access to the source code of the WPF application if needed, however I

Spy++使用方法

别说谁变了你拦得住时间么 提交于 2019-11-27 20:36:56
原文转自 http://jingyan.baidu.com/article/3a2f7c2e76584a26aed61174.html 1、Spy++ 是Visual Studio 自带的工具(菜单"Tools" --> "Spy++"),下面的 Spyxx.exe 也是启动 Spy++ 。 2、spy++ 是微软 Visual Studio 编译器自带的一款工具。它可以显示系统对象(包括进程、线程和窗口)之间关系的图形树,搜索指定的窗口、线程、进程或消息, 查看选定的窗口、线程、进程或消息的属性等等。因此,在 spy++ 的帮助下,我们进行程序调试将容易得多。 下面,我们通过一个简单的示例,来教大家如何使用 spy++ 查看指定窗口的属性。 方法/步骤 (1) 用 VS 打开一个工程,点击启动按钮。程序运行后,显示一个测试窗口。 (2) 点击 VS 菜单“ 工具 ” - “ spy++ ”,启动 spy++。 (3) 点击 spy++ 工具栏中的 望远镜 图标,弹出一个“窗口搜索”的对话框。在“窗口搜索”对话框中,鼠标左键在 查找程序工具 后面的 图标 处按下不放,将此图标拖移到我们想要知道信息的窗口内,再松开鼠标。 (4) 此时,“窗口搜索”对话框内将显示该要查找信息的窗口的句柄、标题和类名。查看完毕后,单击确定。 (5)“窗口搜索”对话框关闭后,spy++

How can I get functionality similar to Spy++ in my C# app?

廉价感情. 提交于 2019-11-27 11:44:05
I'm interested in working on a plugin for Keepass , the open-source password manager. Right now, Keepass currently detects what password to copy/paste for you based off of the window title. This prevents Keepass from detecting the current password you need for apps that don't actively update their window title based on the current site (Chrome for instance). How can I walk through another processes window elements (buttons, labels, textbox) similar to how Spy++ works? When you run Spy++ you can hover over other programs windows and get all kinds of information about various properties

I want Spy++ but I don't have Visual Studio [closed]

蹲街弑〆低调 提交于 2019-11-27 03:15:03
I only have SQL Server 2008 Client tools. I would like to use Spy++ , but of course, it only comes with the Visual Studio installation. Is there a good replacement for Spy++ that I can use? Yuriy Faktorovich Winspector has been more helpful. Not sure why their site is down right now, but there are a lot of other places to download it. There is WinSpy++ by James Brown at Catch22.net It's free contains source and works well. Visual Studio 2013 now has a community edition . See the Q&A on that page to see if you can use it. Spy++ is included in the community edition. I had to launch the

I want Spy++ but I don't have Visual Studio [closed]

醉酒当歌 提交于 2019-11-26 12:22:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I only have SQL Server 2008 Client tools. I would like to use Spy++, but of course, it only comes with the Visual Studio installation. Is there a good replacement for Spy++ that I can use? 回答1: Winspector has been more helpful. Not sure why their site is down right now, but there are a lot of other places to