Jump to content

CAPTDLL does not work if compiled


 Share

Recommended Posts

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

Link to comment
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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...