autoit3实现alt+printscreen窗口截图


#include <ScreenCapture.au3>
RunWait("C:\Windows\System32\mstsc.exe")
Local $hwnd = WinWait("远程桌面连接","", 10)
$hwnd = WinGetHandle("[active]")
ConsoleWrite($hwnd)
_ScreenCapture_CaptureWnd(@MyDocumentsDir & "\TestGDI_Image.jpg", $hwnd)

  有需求要实现alt+printscreen窗口截图, 但是C#开发很麻烦, 于是想到autoit3, 很强大, 可以实现该功能, 然后用C#调用exe就可以了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM