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