游戏辅助基础07:易语言大漠窗口操作
### 1.Windows窗口简介
使用Notepad++软件截图
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625990809672940.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
一个软件由多个窗口组成,一般来说有菜单窗口、工具窗口、编辑窗口、状态窗口;不同的软件组成的子窗口数量也不一样,可以通过精易编程助手来查看
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625990976947182.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
几个编程需要用到的属性
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625991121253635.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
窗口句柄:当前窗口的句柄,系统层面的唯一ID
父句柄:当前窗口的上一个层级的窗口句柄
*句柄:软件最顶层的窗口句柄
窗口标题:标题信息
窗口类名:窗口实现的类名称
---
### 2.大漠窗口API
1.FindWindow
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625991528424697.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
2.FindWindowEx
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625991556294751.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
3.EnumWindow
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625991647333395.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
4.类似的API
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625991692986352.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625991713129774.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625992097822697.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625992121334711.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625992141806406.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
---
### 3.易语言代码示例
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210711/1625992718983105.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
---