daaho Posted April 14, 2008 Share Posted April 14, 2008 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 More sharing options...
ChrisL Posted April 14, 2008 Share Posted April 14, 2008 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) [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
daaho Posted April 14, 2008 Author Share Posted April 14, 2008 Hi ChrisL, thanks for your tip. That solved the problem, that the dll wasn't found thanks, daaho Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now