Gif Posted November 18, 2007 Share Posted November 18, 2007 i include <ScreenCapture.au3> and try to take 1 screenshot (no other includes).. This error pops up: CODEC:\AutoIt3\beta\Include\WinAPI.au3(562,70) : WARNING: $GENERIC_EXECUTE: possibly used before declaration. If BitAND($iAccess, 1) <> 0 Then $iDA = BitOR($iDA, $GENERIC_EXECUTE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\AutoIt3\beta\Include\WinAPI.au3(563,67) : WARNING: $GENERIC_READ: possibly used before declaration. If BitAND($iAccess, 2) <> 0 Then $iDA = BitOR($iDA, $GENERIC_READ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\AutoIt3\beta\Include\WinAPI.au3(564,68) : WARNING: $GENERIC_WRITE: possibly used before declaration. If BitAND($iAccess, 4) <> 0 Then $iDA = BitOR($iDA, $GENERIC_WRITE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\AutoIt3\beta\Include\WinAPI.au3(566,71) : WARNING: $FILE_SHARE_DELETE: possibly used before declaration. If BitAND($iShare, 1) <> 0 Then $iSM = BitOR($iSM, $FILE_SHARE_DELETE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\AutoIt3\beta\Include\WinAPI.au3(567,69) : WARNING: $FILE_SHARE_READ: possibly used before declaration. If BitAND($iShare, 2) <> 0 Then $iSM = BitOR($iSM, $FILE_SHARE_READ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\AutoIt3\beta\Include\WinAPI.au3(568,70) : WARNING: $FILE_SHARE_WRITE: possibly used before declaration. If BitAND($iShare, 4) <> 0 Then $iSM = BitOR($iSM, $FILE_SHARE_WRITE) Link to comment Share on other sites More sharing options...
Nahuel Posted November 18, 2007 Share Posted November 18, 2007 I can't use the ScreenCaputre include either.. I get the 'Vector[] Out of bounds' error... what a shame, such cool udf's About your problem, I get that sometimes with other files. But they are just warnings, the script might still work fine. Link to comment Share on other sites More sharing options...
GaryFrost Posted November 18, 2007 Share Posted November 18, 2007 I get no errors when I run #include <ScreenCapture.au3> ; Capture full screen _ScreenCapture_Capture(@MyDocumentsDir & "\GDIPlus_Image1.jpg") ; Capture region _ScreenCapture_Capture(@MyDocumentsDir & "\GDIPlus_Image2.jpg", 0, 0, 796, 596) and it saves both snap shots. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted November 19, 2007 Share Posted November 19, 2007 i include <ScreenCapture.au3>and try to take 1 screenshot (no other includes).. This error pops up:CODEC:\AutoIt3\beta\Include\WinAPI.au3(562,70) : WARNING: $GENERIC_EXECUTE: possibly used before declaration. If BitAND($iAccess, 1) <> 0 Then $iDA = BitOR($iDA, $GENERIC_EXECUTE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^C:\AutoIt3\beta\Include\WinAPI.au3(563,67) : WARNING: $GENERIC_READ: possibly used before declaration. If BitAND($iAccess, 2) <> 0 Then $iDA = BitOR($iDA, $GENERIC_READ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^C:\AutoIt3\beta\Include\WinAPI.au3(564,68) : WARNING: $GENERIC_WRITE: possibly used before declaration. If BitAND($iAccess, 4) <> 0 Then $iDA = BitOR($iDA, $GENERIC_WRITE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^C:\AutoIt3\beta\Include\WinAPI.au3(566,71) : WARNING: $FILE_SHARE_DELETE: possibly used before declaration. If BitAND($iShare, 1) <> 0 Then $iSM = BitOR($iSM, $FILE_SHARE_DELETE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^C:\AutoIt3\beta\Include\WinAPI.au3(567,69) : WARNING: $FILE_SHARE_READ: possibly used before declaration. If BitAND($iShare, 2) <> 0 Then $iSM = BitOR($iSM, $FILE_SHARE_READ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^C:\AutoIt3\beta\Include\WinAPI.au3(568,70) : WARNING: $FILE_SHARE_WRITE: possibly used before declaration. If BitAND($iShare, 4) <> 0 Then $iSM = BitOR($iSM, $FILE_SHARE_WRITE)Those constants should be in the Constants.au3 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Nahuel Posted November 19, 2007 Share Posted November 19, 2007 I always get this:What does it mean?Apparently, the script pauses until I press Ok. When I do, I get this:C:\Archivos de programa\AutoIt3\beta\Include\GDIPlus.au3 (2688) : ==> Subscript used with non-Array variable.: Return $aResult[0] <> 0 Return $aResult^ ERROR Link to comment Share on other sites More sharing options...
GaryFrost Posted November 19, 2007 Share Posted November 19, 2007 I always get this: What does it mean? Apparently, the script pauses until I press Ok. When I do, I get this: C:\Archivos de programa\AutoIt3\beta\Include\GDIPlus.au3 (2688) : ==> Subscript used with non-Array variable.: Return $aResult[0] <> 0 Return $aResult^ ERROR Means you can't start GDI+, it's failing the "GdiplusStartup" dll call SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted November 19, 2007 Share Posted November 19, 2007 add the following line to the line after the dllcall (after line 2686) and see if it gives an explanation or anything _WinAPI_Check ("_GDIPlus_Startup (GdiplusStartup)", @error, -1) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Nahuel Posted November 19, 2007 Share Posted November 19, 2007 Thanks for your help Gary.Ok, I get this after the Out of Bounds error:Now, I downloaded GDIplus.dll and saved it in C:\Windows\System32. This is what I get when I try to register it:If I run that little example you posted, I don't get any errors or warnings but it does nothing. How come I can't register it? Link to comment Share on other sites More sharing options...
GaryFrost Posted November 19, 2007 Share Posted November 19, 2007 Thanks for your help Gary.Ok, I get this after the Out of Bounds error:Now, I downloaded GDIplus.dll and saved it in C:\Windows\System32. This is what I get when I try to register it:If I run that little example you posted, I don't get any errors or warnings but it does nothing. How come I can't register it?Have you installed GDI+? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Nahuel Posted November 19, 2007 Share Posted November 19, 2007 (edited) I downloaded the DLL, as I said.. I didn't know I had to install anything. Where am I supposed to download from? -edit- Downloaded GDI+ from Microsoft's site, unzipped in the system32 directory and still nothing... Edited November 19, 2007 by Nahuel Link to comment Share on other sites More sharing options...
GaryFrost Posted November 19, 2007 Share Posted November 19, 2007 I downloaded the DLL, as I said.. I didn't know I had to install anything. Where am I supposed to download from?-edit-Downloaded GDI+ from Microsoft's site, unzipped in the system32 directory and still nothing...http://www.microsoft.com/msdownload/platfo...e/downlevel.htm SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Nahuel Posted November 19, 2007 Share Posted November 19, 2007 Thank you so much for your help Gary. I went there and there only seems to be links for Server2003 and WinXP (I have Win2000) I thought I'd try the one for Server2003 but I need to download many files and it says I need 342Mb free space... So I give up. Thanks again pal. Link to comment Share on other sites More sharing options...
GaryFrost Posted November 19, 2007 Share Posted November 19, 2007 http://www.microsoft.com/downloads/details...;DisplayLang=en SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Nahuel Posted November 19, 2007 Share Posted November 19, 2007 That's exactly the one I downloaded before. But, I read the file redist.txt and this is what it says:For Windows 2000, Windows Millennium Edition, Windows NT 4.0 and Windows 98, install gdiplus.dll into the private directory of the application not into the system directory.So I saved the dll in C:\...\AutoIt\Beta\Include, tried to register the dll giving the full path, but still no success.I really appreciate your help Link to comment Share on other sites More sharing options...
Zedna Posted November 28, 2007 Share Posted November 28, 2007 (edited) That's exactly the one I downloaded before. But, I read the file redist.txt and this is what it says:So I saved the dll in C:\...\AutoIt\Beta\Include, tried to register the dll giving the full path, but still no success.I really appreciate your help This DLL needn't be registered because it doesn't contain COM support.Just place it in Windows\System or System32 directory (or some directory listed in PATH)or in your script directory.I used this on my WIN98 with no problems. Edited November 28, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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