Jump to content
Sign in to follow this  
icadea

error in win2000

Recommended Posts

icadea

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

Share this post


Link to post
Share on other sites
Uten

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.

Share this post


Link to post
Share on other sites
icadea

Have uploaded both the requested files in the first post. Thanks for offering to help

Edited by icadea

Share this post


Link to post
Share on other sites
weaponx

Also, what version of AutoIt are you running?

Share this post


Link to post
Share on other sites
icadea

Also, what version of AutoIt are you running?

I'm using v3.2.8.1. thanks for your help

Share this post


Link to post
Share on other sites
Uten

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>

Share this post


Link to post
Share on other sites
Uten

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.

Share this post


Link to post
Share on other sites
Uten

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..:)

Share this post


Link to post
Share on other sites
icadea

Thanks for the quick advise. i'll try this out. Thanks again all. Is there a method i could check this on my own like how you have done. Any special debugger needed?

thanks again

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  

×