[英]How to close an application window in Perl automation?
I have an automation which opens many applications. 我有一个自动化打开许多应用程序。 I want to close all the opened windows at the end of the execution.
我想在执行结束时关闭所有打开的窗口。 I know I can use SendKeys(%F4);
我知道我可以使用SendKeys(%F4); But I Don't want to use send keys function.
但我不想使用发送键功能。 Is there any other way closing an window.??
是否有其他方式关闭窗口。
If any please let me know... 如果有的话请告诉我......
Thanks in advance... :) 提前致谢... :)
Use the following code. 使用以下代码。
MenuSelect("&Close", 0, GetSystemMenu(HWND, FALSE));
Which gets the default(System) menu which one can get by clicking the top left of the title bar, and makes the select operation on close. 通过单击标题栏的左上角,可以获得默认(系统)菜单,并使选择操作关闭。
单击此处显示CloseWindow $ HWND向窗口发送关闭信号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.