#include <ScreenCapture.au3> RunWait("C:WindowsSystem32mstsc.exe") Local $hwnd = WinWait("远程桌面连接","", 10) $hwnd = WinGetHandle("[active]") ConsoleWrite($hwnd) _ScreenCapture_CaptureWnd(@MyDocumentsDir & "TestGDI_Image.jpg", $hwnd)
有需求要实现alt+printscreen窗口截图, 但是C#开发很麻烦, 于是想到autoit3, 很强大, 可以实现该功能, 然后用C#调用exe就可以了