2012-05-08 31 views
0

我有以下AutoIt腳本:AutoIt的CaptureScreen文件位置

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放在文件。我究竟做錯了什麼?

+0

您可以使用['WinWaitActive'](http://www.autoitscript.com/autoit3/docs/functions/WinWaitActive.htm)代替睡眠(1000)。 – Samoth

回答

1

沒有正確安裝captdll,那就是問題所在。