icadea Posted October 16, 2007 Share Posted October 16, 2007 (edited) 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.thankshttp://img228.imageshack.us/my.php?image=89629827wq1.jpghttp://img228.imageshack.us/my.php?image=72544996je0.jpgneeded filesThis 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 October 16, 2007 by icadea Link to comment Share on other sites More sharing options...
Uten Posted October 16, 2007 Share Posted October 16, 2007 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. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
icadea Posted October 16, 2007 Author Share Posted October 16, 2007 (edited) Have uploaded both the requested files in the first post. Thanks for offering to help Edited October 16, 2007 by icadea Link to comment Share on other sites More sharing options...
weaponx Posted October 16, 2007 Share Posted October 16, 2007 Also, what version of AutoIt are you running? Link to comment Share on other sites More sharing options...
icadea Posted October 16, 2007 Author Share Posted October 16, 2007 Also, what version of AutoIt are you running?I'm using v3.2.8.1. thanks for your help Link to comment Share on other sites More sharing options...
Uten Posted October 16, 2007 Share Posted October 16, 2007 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> Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
weaponx Posted October 16, 2007 Share Posted October 16, 2007 All those includes come with PaulIA's UDF library. http://www.autoitscript.com/forum/index.php?showtopic=33677 Link to comment Share on other sites More sharing options...
Uten Posted October 16, 2007 Share Posted October 16, 2007 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. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Uten Posted October 16, 2007 Share Posted October 16, 2007 All those includes come with PaulIA's UDF library. http://www.autoitscript.com/forum/index.php?showtopic=33677I figured that. Even added a link.. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
icadea Posted October 17, 2007 Author Share Posted October 17, 2007 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 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