Jump to content

error in win2000


icadea
 Share

Recommended Posts

Hi,

I have the error mentioned below whenever the script is run in win2000. No error is seen in winxp. Pls advise if there were any mistake. It is a screen capture script to capture and convert clipboard images.

thanks

http://img228.imageshack.us/my.php?image=89629827wq1.jpg

http://img228.imageshack.us/my.php?image=72544996je0.jpg

needed files

This is the script

#NoTrayIcon

#Include <A3LClipBoard.au3>
#Include <A3LScreenCap.au3>

SplashTextOn("capture", "Saving capture...", 180, 30)
Sleep(1000)
SplashOff()

DirCreate(@ScriptDir & "\capture")
$CaptureName = @ScriptDir & "\capture\cap_" & @YEAR & @MON & @MDAY & @HOUR & @MIN & @SEC & ".jpg" 
_ScreenCap_Capture ($CaptureName)
_Clip_SetData ($CaptureName)

SplashTextOn("capture", "Capture saved...", 180, 30)
Sleep(1000)
SplashOff()

Exit
Edited by icadea
Link to comment
Share on other sites

Put links to A3LClipBoard.au3 A3LScreenCap.au3 in your original post and I can help you out. Both errors are related to something not returning an expected array. Probably a dllcall.

Link to comment
Share on other sites

Lots of missing files. you should link to the origin(?) of those files rather than the two you have uploaded.

D:\temp\A3LClipBoard.au3(2,10) : ERROR: can't open include file <A3LMemory.au3>
#include <A3LMemory.au3>
~~~~~~~~~^
D:\temp\A3LClipBoard.au3(3,10) : ERROR: can't open include file <A3LWinAPI.au3>
#include <A3LWinAPI.au3>
~~~~~~~~~^
D:\temp\A3LClipBoard.au3(520,48) : WARNING: $GHND: possibly used before declaration.
      $hMemory = _Mem_GlobalAlloc($iSize, $GHND)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\temp\A3LScreenCap.au3(2,10) : ERROR: can't open include file <A3LGDIPlus.au3>
#include <A3LGDIPlus.au3>
~~~~~~~~~^
D:\temp\A3LScreenCap.au3(3,10) : ERROR: can't open include file <A3LString.au3>
#include <A3LString.au3>
Link to comment
Share on other sites

From the file A3LGDIPlus.au3

; Remarks .......: Call _GDIP_Startup before you create any GDI+ objects.  GDI+ requires a redistributable for applications  that
;                  run on the Microsoft Windows NT 4.0 SP6, Windows 2000, Windows 98, and Windows Me operating systems.
; Related .......: _GDIP_Shutdown
; ===============================================================================================================================
Func _GDIP_Startup()
In the function you can see that the module expects a file called gdipluss.dll. This file is not present in a stock w2k installation.
Link to comment
Share on other sites

All those includes come with PaulIA's UDF library. http://www.autoitscript.com/forum/index.php?showtopic=33677

I figured that. Even added a link..:)
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...