我有以下 AutoIt 脚本:
Run("Notepad.exe", @WindowsDir, @SW_MAXIMIZE)
Sleep(1000)
Send("Just a test")
$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)
该脚本似乎运行正常,但我无法在任何地方找到 test.jpg 文件。我究竟做错了什么?