I have the following AutoIt script:
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)
The script seems to run OK, but I cannot locate the test.jpg file anywhere. What am I doing wrong?
Did not have captdll installed correctly, that was the problem.