2012-05-08 8 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) 

スクリプトが実行OKのようですが、私はどこにでもtest.jpgファイルを見つけることができません。私は間違って何をしていますか?

+0

スリープ(1000)の代わりに['WinWaitActive'](http://www.autoitscript.com/autoit3/docs/functions/WinWaitActive.htm)を使うことができます。 – Samoth

答えて

1

captdllが正しくインストールされていない、それが問題でした。

関連する問題