自动取程序窗口的截屏 [英] Automatically taking screenshots of program window

查看:364
本文介绍了自动取程序窗口的截屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找,结合宏录制与拍摄截图功能的软件。

I'm looking for a software that combines macro recording with screenshot taking capabilities.

我们有一些截图的软件使用手册。当新的软件版本发布时,我们需要更新大部分的截图,我们必须做手工。现在,我们开始翻译手册,以几种语言和截图采取数量增加了十倍。我们希望这个过程自动化。

We have a software manual with a number of screenshots. When new version of software is released we need to update most of screenshots and we have to do it manually. Now we started translating manual to several languages and number of screenshots to take have increased ten fold. We'd like to automate this process.

有将录制的宏或东西,我们的软件中点击按钮,并采取程序窗口的截图。更妙的是,我们可以分别指定每个屏幕截图的名字虽然它是那么重要了。

There will be a recorded macro or something that clicks button within our software and takes screenshots of the program window. Better yet, we can specify the name of each screenshot individually though it's less important.

有没有这样的事情存在?

Does such a thing exist?

推荐答案

我使用 AutoIt的 captdll.dll 我所有的Windows图形用户界面的自动化任务。

I use AutoIt plus captdll.dll for all my Windows GUI automation tasks.

例如:

Run("Notepad.exe", @WindowsDir, @SW_MAXIMIZE)   ; Open NOTEPAD
Sleep(1000)
Send("Just a Test")   ; Send some text to notepad

; Save the screen to test.jpg  
$anPos = WinGetClientSize("")
$nLeft = 0
$nTop = 0
$nRight = $anPos[0]
$nBottom = $anPos[1]

$sFileName = "test.jpg"
DllCall("captdll.dll", "int:cdecl", "CaptureScreen", "str", $sFileName, "int", 85)

这样你就可以自动完成整个截图捕获过程:

This way you can automate the entire screenshot capturing process:


  • 与运行启动应用程序

  • 与发送选择你的每一个菜单选项

  • 完成每个屏幕的数据也与发送

  • 捕获与DllCall(captdll.dll......)

您还可以添加条件逻辑,循环等。

You can also add conditional logic, loop, etc.

这篇关于自动取程序窗口的截屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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