Sign in to follow this  
Followers 0
daaho

CAPTDLL does not work if compiled

3 posts in this topic

Hello experts,

I want to use the captdll.dll.

My script works fine if I test it from the editor; but when I compile this script, the screenshot function does not work.

I get no output file created and the script continues without errors.

$LogFilePath = "C:\Temp"
$TimeStamp = @YEAR & @MON & @MDAY & @HOUR & @MIN & @SEC

; Capture full screen
; Fist parameter - filename, last - jpeg quality.
$erg = DllCall("captdll.dll", "int:cdecl", "CaptureScreen", "str", $LogFilePath & "\Ce2eC_" & $TimeStamp & ".JPG", "int", 75)

I am using AutoIT 3.2.8.1

bye, daaho

Share this post


Link to post
Share on other sites



Hello experts,

I want to use the captdll.dll.

My script works fine if I test it from the editor; but when I compile this script, the screenshot function does not work.

I get no output file created and the script continues without errors.

$LogFilePath = "C:\Temp"
$TimeStamp = @YEAR & @MON & @MDAY & @HOUR & @MIN & @SEC

; Capture full screen
; Fist parameter - filename, last - jpeg quality.
$erg = DllCall("captdll.dll", "int:cdecl", "CaptureScreen", "str", $LogFilePath & "\Ce2eC_" & $TimeStamp & ".JPG", "int", 75)

I am using AutoIT 3.2.8.1

bye, daaho

Is the DLL in the folder with your compiled script? Maybe you should fileinstall it and call it from that location

FileInstall("captdll.dll",@TempDir & "\captdll.dll")
DllCall(@TempDir & "\captdll.dll", "int:cdecl", "CaptureScreen", "str",  $LogFilePath & "\Ce2eC_" & $TimeStamp & ".JPG", "int", 75)

Share this post


Link to post
Share on other sites

Hi ChrisL,

thanks for your tip. That solved the problem, that the dll wasn't found

thanks, daaho

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0