SPY++ 学习总结

您所在的位置:网站首页 gitee中文名 SPY++ 学习总结

SPY++ 学习总结

2023-03-26 17:08| 来源: 网络整理| 查看: 265

spy++使用方法

分步阅读 spy++ 是微软 Visual Studio 编译器自带的一款工具。它可以显示系统对象(包括进程、线程和

窗口)之间关系的图形树,搜索指定的窗口、线程、进程或消息, 查看选定的窗口、线程、进程

或消息的属性等等。因此,在 spy++ 的帮助下,我们进行程序调试将容易得多。 

下面,我们通过一个简单的示例,来教大家如何使用 spy++ 查看指定窗口的属性。

方法/步骤 1 用 VS 打开一个工程,点击启动按钮。程序运行后,显示一个窗口。

2 点击 VS 菜单“工具” - “spy++”,启动 spy++。。 s 3 点击 spy++ 工具栏中的 望远镜 图标,弹出一个“窗口搜索”的对话框。在“窗口搜索”对话框

中,鼠标左键在 查找程序工具 后面的 图标 处按下不放,将此图标拖移到我们想要知道信息的窗

口内,再松开鼠标。

4 此时,“窗口搜索”对话框内将显示该要查找信息的窗口的句柄、标题和类名。查看完毕后,单击

确定。

5 “窗口搜索”对话框关闭后,spy++ 将高亮显示我们要查找信息的窗口。如果该窗口是一个父窗

口(即它还包含子窗口),则前面会有 + 号。点击 + 号展开,可以查看它包含的子窗口信息。

6 如果想查看某个子窗口的信息,则可以在该子窗口行右击鼠标,选择 属性,弹出 属性检查器 窗口

7 在属性检查器窗口中,该窗口的大小位置坐标、样式(含扩展样式)、窗口句柄(含父窗口句柄等

)、所属类(包括窗口类名、实例句柄、图标、光标句柄等信息)、进程(包含进程ID和线程ID

)信息就一览无余了。 ========

Spy++ —— 窗口、消息查看分析利器 http://blog.csdn.net/dpsying/article/details/51913947

1简介 2下载地址 3使用场景 4使用方法 1,简介

Microsoft Spy++是一个非常好的查看Windows操作系统的窗口、消息、进程、线程信息的工具

,简单易用,功能强大。

2,下载地址

百度网盘:http://pan.baidu.com/s/1skMJUkH

3,使用场景

(1)我经常用来查询一个不知道从哪里弹出来的广告窗口是哪个进程搞的鬼……然后干掉 (2)枚举所有窗口,查看父子关系,搜索某个窗口是否存在 (3)查询一个窗口(包括隐藏窗口)的属性,包括标题、类名、位置、进程线程 (4)通过分析其他软件的窗口消息,辅助研究其内部实现原理 (5)分析某窗口的消息参数,给其发送冒充消息,以实现特殊的功能

4,使用方法

1,默认界面 可查看所有顶层窗口,展开可显示子窗口。 2,右键窗口,选择“消息”,可打开该窗口的消息查看窗口。里面实时显示当前消息。

3,显示一个窗口位置。 右键窗口,选择“突出显示”,之后该窗口的边界会闪烁几次,让你轻易地发现它的位置。 如果没有闪烁,那么也可以通过点击“属性”,显示出该窗口的位置属性,然后在屏幕上根据该位

置大致判断出是哪个窗口。

突出显示和查看属性:

4,如果需要分析桌面的某一个存在的窗口属性,点击工具条的第5个按钮(如下图),将弹出界

面里的圆圈拖到该窗口上。则该窗口属性显示出来。 如图,查看任务栏中间的子窗口属性:

5,选择工具条第6个按钮,可以在窗口列表中直接定位到该窗口显示。

如图,直接定位到任务栏的子窗口“显示运行的程序”。

6,查看窗口的消息时,可以设置一些条件和格式。

可以设置是否查看父窗口、子窗口、同一进程、同一线程、系统中所有窗口的消息。 可以设置哪些消息类型。(“消息选项”界面第2个TAB页“消息”) 可以设置输出哪些内容。(“消息选项”界面第3个TAB页“输出”) ========

spy++

Spy++ (SPYXX.EXE) 是一个基于 Win32 的实用工具,它提供系统的进程、线程、窗口和窗口消

息的图形视图。使用 Spy++ 可以执行下列操作: 显示系统对象(包括进程、线程和窗口)之间

关系的图形树。 搜索指定的窗口、线程、进程或消息。 查看选定的窗口、线程、进程或消息的属

性。 中文名 spy++ 基    于  Win32 最新版本支持 Win64 提供系统进程、线程、窗口 目录 1 简介 2 实际应用 激活灰色按钮: 监视IE上网记录: 简介 直接从视图中选择窗口、线程、进程或消息。 通过鼠标定位,使用查找程序工具选择窗口。 使用

复杂的消息日志选择参数设置消息选项。 提示使用 Spy++ 时,在许多实例中都可以单击鼠标右

键显示常用命令的弹出式菜单。命令是否可用取决于指针的位置。例如,如果在指向窗口视图中的

某项时单击并且选定的窗口可见,则弹出式“突出显示”菜单项将导致选定窗口的边框闪烁,从而

可以轻松地在屏幕上找到该窗口。 Spy++ Lite是一款强有力的编程辅助工具,对分析窗体结构有独到之处。可以以十六进制和十进

制两种不同方式显示窗口句柄等所有数值。本软件还可以简单调节窗口的状态和形为,如是否可见

,是否可用,最大化,激活等。除此以外,您还可以把它当作一个截图的小工具来用。 实际应用 下面举两个例子来小试牛刀: 激活灰色按钮: 打开任一文件的属性窗口,它的右下角处“应用”按钮都是不可用的(灰色的)。拖动本软件的探

测器指针选中该按钮。切换至“消息”标签页,勾选“窗口可用”。看到了吧?“应用”按钮被我

们激活了。 监视IE上网记录: 用本软件的探测器指针选中IE的地址栏。看到它的窗口类名为Edit;切换至“窗口”标签页,点击

“父窗口”标签,使父窗口成为当前窗口;切换到“类”标签页,看到其类名为ComboBox;再

依照上步点击,将得到父窗口类名依次是ComboBoxEx32、ReBarWindow32、WorkerW,直到

最外层的IEFrame。此时再点击“子窗口列表”按钮,依次双击子窗口,看看能否找到地址栏Edit

。窗体结构清楚了,我们就不难用FindWindowEx、SendMessage、GetClassName、

GetWindowText等几个API函数来监视上网记录了。 ========

Spy++的使用方法及下载 http://blog.csdn.net/whatday/article/details/7985922 以spy++这个软件为主,介绍下窗体句柄和使用按键插件时 ,如果对这个句柄发送消息,即所谓的后台挂机。 spy++这个软件来自VC++,装好VC后,就可以在工具中看到。

我们以“记事本”为例,看看如果给记事本发送按键消息。 首先启动记事本

随后启动SPY++

使用spy++的查找功能

点开后的效果

我们把黑色准星拖动到记事本窗体上

然后点击“确定”,看到了SPY++已经显示了下图红色的内容。

这三个句柄从上到下依次是: 记事本的主句柄 文字输入框的句柄 状态栏的句柄 我们要给记事本发送按键消息,就要选对发送对象(句柄),这里显然,我们要发送给“文字输入

框”。我们双击“文字输入框”这里,可以看到“窗口标题”、“窗口大小”、“窗口位置”等信

息。点击“类”选项卡,查看下类名是什么,代码里需要类名做参数

好了,基本的数据都有了,下面给出的代码: [plain] view plain copy //打开记事本   VBSCall RunApp("notepad.exe")   //等待记事本完全打开   Delay 100   //得到当前窗口句柄   dim hwnd   Plugin hwnd=Window.Foreground()   //查找当前窗口下的子句柄   dim edithwnd   Plugin edithwnd=Window.FindEx(hwnd,0,"Edit",0)   //发送字符串消息   Plugin Window.SendString(edithwnd, "看我发送字符串消息")   //发送回车   Plugin Window.SendKeyDown(edithwnd,13)   //发送键盘消息   Plugin Window.SendKeyDown(edithwnd,asc("1"))   ========

Introducing Spy++ https://msdn.microsoft.com/en-us/library/dd460756.aspx Visual Studio 2015 Other Versions    Spy++ lets you perform the following tasks: Display a graphical tree of relationships among system objects. These include processes, 

threads, and windows. Search for specified windows, threads, processes, or messages. View the properties of selected windows, threads, processes, or messages. Select a window, thread, process, or message directly in the view. Use the Finder Tool to select a window by mouse pointer positioning. Set message options by using complex message log selection parameters. Spy++ has a toolbar and hyperlinks to help you work faster. It also provides a Refresh 

command to update the active view, a Window Finder Tool to make spying easier, and a 

Font dialog box to customize view windows. Additionally, Spy++ lets you save and restore 

user preferences. In various Spy++ windows, you can right-click to display a shortcut menu of frequently 

used commands. Which commands are displayed depends on where the pointer is. For 

example, if you right-click an entry in the Window view and the selected window is visible, 

then clicking Highlight on the shortcut menu causes the border of the selected window 

to flash so that it can be located more easily. System_CAPS_noteNote There are two other utilities that resemble Spy++: PView, which shows details about 

processes and threads, and DDESPY.EXE, which lets you monitor Dynamic Data Exchange 

(DDE) messages. 64-Bit Operating Systems There are two versions of Spy++. The first version, named Spy++ (spyxx.exe), is designed 

to display messages sent to a window that is running in a 32-bit process. For example, 

Visual Studio runs in a 32-bit process. Therefore, you can use Spy++ to display messages 

sent to Solution Explorer. Because the default configuration for most builds in Visual 

Studio is to run in a 32-bit process, this first version of Spy++ is the one that is available 

on the Tools menu in Visual Studio. The second version, named Spy++ (64-bit) (spyxx_amd64.exe), is designed to display 

messages sent to a window that is running in a 64-bit process. For example, on a 64-bit 

operating system, Notepad runs in a 64-bit process. Therefore, you can use Spy++ (64-

bit) to display messages sent to Notepad. Spy++ (64-bit) is typically located in ..\Visual Studio installation folder\Common7\Tools\spyxx_amd64.exe. You can run either version of Spy++ directly from the command line. System_CAPS_noteNote Although the Spy++ (64-bit) file name contains "amd", it runs on any x64 Windows 

operating system. See Also Using Spy++ Spy++ Views Spy++ Reference ========

autohotkey 如何使用window

分步阅读 如何使用window spy

工具/原料 autohotkey 方法/步骤 1 打开任意.ahk脚本

2 右击该脚本的托盘图标,点击“window spy”

3 弹出“window spy”窗口

4 在某窗体上点一下,就可以看到该窗体的一些信息(如:窗体标题、鼠标的位置等)

5 提取需要的信息利用。

注意事项 有些窗体的控件的信息、或某些信息是获取不了的 ========

Spy++ Reference https://msdn.microsoft.com/en-us/library/dd460732.aspx

Visual Studio 2015 Other Versions    For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC 

Documentation. See the sections listed below for descriptions of each Spy++ menu and dialog box: In This Section Menu Commands Describes the commands available on each Spy++ menu. Font Dialog Box Used to configure the character font used in a Spy++ Views window. Search Tools for Spy++ Views Dialog boxes used to find a specific node in a Spy++ Views window. Window Properties Dialog Box Used to display the properties of a window selected in Windows view. Message Options Dialog Box Used to select which messages are listed in Messages view. Message Properties Dialog Box Used to display the properties of a message selected in Messages view. Process Properties Dialog Box Used to display the properties of a process selected in Processes view. Thread Properties Dialog Box Used to display the properties of a thread selected in Threads view. Other Dialog Boxes Used to display information about the Spy++ program. Related Sections Using Spy++ Introduces the Spy++ tool and explains how it can be used. Spy++ Views Explains the Spy++ tree views of windows, messages, processes, and threads. ========



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3