【问题标题】:Getting image contents of obstructed window获取被遮挡窗口的图像内容
【发布时间】:2010-08-11 20:02:23
【问题描述】:

是否可以在不将其置于前面的情况下获取受阻窗口的图像内容?此外,是否可以使用 Windows API 将鼠标点击发送到此类窗口的特定位置? Windows XP 和 Windows 7 上的实现会有所不同吗? 我需要什么功能以及在哪里可以阅读更多相关信息。谢谢。

【问题讨论】:

    标签: c++ windows screen-capture


    【解决方案1】:

    Windows GDI 可以帮助您完成屏幕截图任务。有一些 VB 代码here 可以帮助您入门。

    有很多关于如何模拟鼠标点击的资料:

    http://tomicki.net/mouse.clicker.php

    Simulate Mouse move/click/keyPress in an application that is not active

    http://msdn.microsoft.com/en-us/library/ms171548.aspx

    【讨论】:

    • 谢谢。如果在 Windows 7 上编写,您是否会知道代码是否可以在 Windows XP 上运行?
    猜你喜欢
    • 2012-08-13
    • 2017-02-20
    • 2011-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多