由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - How to kill a window without title?
相关主题
win8.1 黑屏问题怎样将array^转换成string?
emacs真是用得吐啊Perl问题求助
大牛推荐个方便点的编辑器吧请教python 打开文件的问题!多谢!
急问一个Linux shell问题Hex byte string syntax in perl please (转载)
How to get the next active Window?请教,关于g++ -l的问题
emacs里面有没有快捷建能交换2个窗口的内容? (转载)谁给推荐一下scrum或者agile prog. management方面的书?
Any AutoIt Expert Here?a question on C++ string
大喊一声, 有人会AUTOHOTKEY吗?Qt: How to display a cursor when a QLineEdit is not focused
相关话题的讨论汇总
话题: window话题: title话题: kill话题: without话题: mouse
进入Programming版参与讨论
1 (共1页)
c**t
发帖数: 2744
1
How to write script/prog to kill a window without title?
If it has title, easy to setfocus and send alt-F4 to kill it.. but if it
doesn't have title, how to do it?
The AutoIt v3 reports the window info:
Press CTRL-ALT-F to freeze the display.
>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title:
Class: #32770
Size: X: 238 Y: 111 W: 548 H: 512
>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Screen: X: 425 Y: 203
Cursor ID: 5
>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB: Hex: 0xFFFFF
L*********r
发帖数: 92
2
If the window which you talk about is window on win os,
in programming, the elegant way to kill a window is send a close message or
calling destroywindow api.
Different tech may provides high level api to wrap the two ways.
To kill a window without title or safely kill a window with title, it is not
easy. In my experience, first I get the window hwnd. Then get the related
process using the hwnd, if the process is what i deal with, i destroy the
window. It is implement in c++. I am not sure that
1 (共1页)
进入Programming版参与讨论
相关主题
Qt: How to display a cursor when a QLineEdit is not focusedHow to get the next active Window?
从最近讨论,发现往MAC migrateemacs里面有没有快捷建能交换2个窗口的内容? (转载)
unix下如何获得当前term的背景色?Any AutoIt Expert Here?
关于signal handler大喊一声, 有人会AUTOHOTKEY吗?
win8.1 黑屏问题怎样将array^转换成string?
emacs真是用得吐啊Perl问题求助
大牛推荐个方便点的编辑器吧请教python 打开文件的问题!多谢!
急问一个Linux shell问题Hex byte string syntax in perl please (转载)
相关话题的讨论汇总
话题: window话题: title话题: kill话题: without话题: mouse