全局轮询 Windows API 中正在拖动哪些文件?
我想知道是否可以使用 Windows API 全局轮询当前正在 Windows 中拖动哪些(如果有)文件,而与任何特定窗口无关。
例如,我正在做一些与网络有关的事情,当用户将文件拖到屏幕边缘时,它会通知单独的计算机该文件已到达屏幕边缘。我的程序在后台运行,但它没有窗口化,并且很难(不可能)将窗口放置在所有 4 个屏幕边缘周围。
我用 Python 来做这件事,但如果我必须使用另一种语言并围绕它编写一个包装器,那也很好。
I'm wondering if it's possible to globally poll which (if any) files are currently being dragged in Windows using the Windows API, independently of any particular window.
For example, I'm doing some stuff with networking where, when the user drags a file to the edge of the screen, it notifies a separate computer that the file has hit the screen edge. I've got my program running in the background, but it's not windowed, and it's hard (impossible) to place my window around all 4 screen edges.
I'm doing this in Python, but if I have to use another language and write a wrapper around it that's fine too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想要挂钩
DoDragDrop
。You want to hook
DoDragDrop
.