У меня есть следующий скрипт 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. Что я делаю не так?
WinWaitActive
. - person Samoth   schedule 09.05.2012