Matrix112 Posted June 21, 2006 Posted June 21, 2006 (edited) Hi,i wrote this UDF to learn the use of DLL Call. It´s not very useful but a good example. It works, but there is one bug, option 1 won´t work and if i choose 0 it asks if i want to delete a desktop.ini in my Recycle bin. ERecycleBin.au3;====================================================================================== ; ; Function Name: _EmptyRecycleBin($flag) ; Description: Use this function to empty the recycle bin. ; Parameter(s): $flag. Normal=0 No Confirmation=1 No Progress UI=2 Nosound=4 ; Requirement(s): Include ERecycleBin.au3 ; Return Value(s): none. ; Author(s): Matrix112 <ch.krogmann@gmx.de> ; ;====================================================================================== ; Func _EmptyRecycleBin ($flag) $path = @HomeDrive DllCall("shell32.dll","none","SHEmptyRecycleBinA","hwnd",0,"str",$path,"long",$flag) EndFuncExample:#include <ERecycleBin.au3> $empty = _EmptyRecycleBin (0) Exit Edited June 21, 2006 by Matrix112
Daniel W. Posted June 21, 2006 Posted June 21, 2006 (edited) Nice for learning but isn't this the same: FileRecycleEmpty() ? Edited June 21, 2006 by Daniel W. --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]
w0uter Posted June 21, 2006 Posted June 21, 2006 have you even tested this ? there is no &H in autoit My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Matrix112 Posted June 21, 2006 Author Posted June 21, 2006 Its the same I just wrote this for learning, i think this wa easy function to start work with Dll´s.
w0uter Posted June 21, 2006 Posted June 21, 2006 (edited) removed. Edited June 21, 2006 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
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