如何获取特定应用程序的接口?帮助! [英] How to get the Interface of a specific application?Help!

查看:99
本文介绍了如何获取特定应用程序的接口?帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

输入窗口的句柄并打印到设备.
PS:我曾尝试使用PrintWindow()API,但是当应用程序最小时,图片是纯黑色的,我认为该现象的原因是操作系统尚未存储接口数据.我不知道当应用程序不在屏幕的最前面时,是否有一些API可以获取应用程序接口.

对不起,我的英语不好,我非常感谢您的帮助和关注.由于窗口已最小化,因此屏幕上不存在任何内容,并且您会得到黑色图像.您可能必须规范化(或最大化)所讨论的应用程序,打印"屏幕,然后将其返回到最小化状态.


Input the window''s handle and print to the device.
PS: I have tried to use PrintWindow() API,but when the application is minimun,the picture is pure black and I think the reason for that phenomenon is that the OS hasn''t storage the Interface data. I wonder if there are some API to get the application interface when the application is not in the front of the screen even is minumum.

Sorry for my poor English and I feel great grateful for your help and attention.

解决方案

Well, "print screen" does exactly that. Since the window is minimized, there''s no presence on the screen, and you get a black image. You probably have to normalize (or maximize) the application in question, "print" the screen, and then return it to its minimized state.


这篇关于如何获取特定应用程序的接口?帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆