Leaderboard
Popular Content
Showing content with the highest reputation on 02/23/2013 in all areas
-
Just by happenstance I learned you can use scite output window as though it were command prompt, for example try ipconfig. Amount of times I've opened a cmd window when I already had scite open EDIT: o.Ops, probably should have been in chat.2 points
-
And just why would you even suggest that someone (an MVP no less) who has been a member for 8 years and has over 4600 posts might want to leave the forums. Be careful what you say to people with that kind of experience behind them when you have been a member for only a year and just made the 250 posts mark. EDIT: I should have also pointed out that you made that comment to a very well respected member of this community.2 points
-
MouseHoverCallTips [11/24/2023]
ioa747 reacted to jaberwacky for a topic
When ever you hover your mouse over a native function, user defined function, or an AutoItObject method then you will see the calltip for that function. Click "Like This" if you found this useful! To use this just place the following lua file in the "...AutoIt3\SciTE\lua" directory. MouseHoverCallTips.zip downloads:741 After you have done that then open SciTE and click 'Options' --> 'Open Lua Startup Script' and paste this line after the other lines (may require administrative rights): LoadLuaFile("MouseHoverCallTips.lua") Updates and changes:1 point -
ZIP.au3 UDF in pure AutoIt
HouseRockerZz reacted to torels for a topic
Hi there! I just wrote a ZIP udf in AutoIt (without external files) which lets you create archives, fill them with files and folders and extract them to your computer these are the functions <<go to the last release's section and jump previous releases's posts>> ======================= Updated ======================= UPDATED 30/6/2008 UPDATED 24/9/2008 Fixed Various Bugs Added Wait Function to let the script sleep until the files havn't been zipped Changed Function Names new format is: _Zip_TheFunction() UPDATED 13/10/2008 _Zip_AddFolder() now changed in _Zip_AddFolderContents() New Function : _Zip_AddFolder() that now adds the whole folder creating a subdirectory in the zip file _Zip_Count() Bug Finally fixed UPDATED 6/11/2008 New Function : _Zip_CountAll() that counts all elements in the archive. Including SubDirectories UPDATED 28/11/2008 New Virtual Zipping Functions this is actually very cool stuff! Maybe useless, but cool. UPDATED 17/03/2009 Added _Zip_Delete($hZipFile, $hFilename, $flag = 1). Very slow but it works... It'll be improved FLAGS WORK! Here are the User CallTip Entries: _Zip_Create($FileName) Create Zip File. Required #include <Zip.au3> _Zip_AddFile($ZipFile, $File2Add, [$flag]) Add file to Zip Archive. Required #include <Zip.au3> _Zip_AddFolder($ZipFile, $Folder, [$flag]) Add folder to Zip Archive. Required #include <Zip.au3> _Zip_AddFolderContents($ZipFile, $Folder, [$flag]) Add folder's content to Zip Archive. Required #include <Zip.au3> _Zip_Delete($ZipFile, $hFileName, [$flag]) _Zip_UnzipAll($ZipFile, $DestPath, [$flag]) Extract all files from Zip Archive. Required #include <Zip.au3> _Zip_Unzip($ZipFile,$FileName, $DestPath, [$flag]) Extract file from Zip Archive. Required #include <Zip.au3> _Zip_Count($ZipFile) Count items in zip. Required #include <Zip.au3> _Zip_CountAll($ZipFile) Count All items in the Zip Archive Including SubDirectories. Required #include <Zip.au3> _Zip_List($ZipFile) List items in zip. Required #include <Zip.au3> _Zip_Search($ZipFile, $SearchString) Search a File in the Zip Archive. Required #include <Zip.au3> _Zip_SearchInFile($ZipFile, $SearchString) Search In each File of the Zip Archive. Required #include <Zip.au3> _Zip_VirtualZipCreate($ZipFile, $Path) Create a Virtual Zip. Required #include <Zip.au3> _Zip_VirtualZipDelete($VirtualZipHandle) Delete a Virtual Zip. Required #include <Zip.au3> Example Script ; Zip Example ; _________________________________ ; ; Zip UDF Example by torels_ ; _________________________________ #include "Zip.au3" Dim $Zip, $myfile $myfile = @DesktopDir & "\foo.au3" $Zip = _Zip_Create(@DesktopDir & "\zip_002.zip") ;Create The Zip File. Returns a Handle to the zip File _Zip_AddFile($Zip,$myfile) ;add $myfile to the zip archive _Zip_AddFolder($Zip,@desktopdir & "\Folder_001",4) ;Add a folder to the zip file (files/subfolders will be added) _Zip_AddFolderContents($Zip, @DesktopDir & "\MyFolder") ;Add a folder's content in the zip file MsgBox(0,"Items in Zip","there are " & _Zip_Count($Zip) & " items in " & $Zip) ;Msgbox Counting Items in $Zip MsgBox(0,"Items in Zip","there are " & _Zip_CountAll($Zip) & " Elements in " & $Zip) ;Msgbox Counting Elements in $Zip $search = _Zip_Search($Zip,"foo.au3") ;Returns an array containing the search results For $i = 0 to UBound($search) - 1 ; Print Each ConsoleWrite($search[$i]) & @LF ; Corresponding value Next ; In The Console $list = _Zip_List($Zip) ;Returns an array containing all the files in the zip file ConsoleWrite("============== ZIP Contents ============" & @LF) For $i = 0 to UBound($list) - 1 ConsoleWrite($list[$i] & @LF) ;Print Search Results in the console Next Exit Comments are welcome previous number of downloads: 1787 & a few more XD Zip.au31 point -
ZIP UDF (zipfldr.dll library)
seadoggie01 reacted to wraithdu for a topic
Here is the rewritten version of this UDF. See my comments HERE. Please test the shit out of this thing. It was a major headache, and I want to make sure I didn't miss something. Thanks! Update 2013/05/28 - Fixed missing @error return in _Zip_ItemExists - Clarified a few @error return value meanings - Added an additional check and @error code to _Zip_DeleteItem - Clarified some of the header notes, esp regarding behavior on XP Update 2011/12/08 - Fixed recursion in ListAll function Update 2011/12/07 - Fixed recursion error in CountAll function - updated objects to conform to new COM syntax (parenthesis req'd for methods) Update 2011/07/01 - Reverted change to AddItem function - **Adding an item directly to a sub folder on XP will FAIL Update 2011/06/30 - Fixed traversing namespaces on Windows XP - Added note that overwrite fails on XP Update 2011/01/13 - Fixed bug adding items to a subfolder that doesn't exist yet Update 2010/08/27 - Fixed bug with trailing 's Update 2010/07/16 - Better error reporting in _Zip_AddItem function Update 2010/07/02 - Added credits. - Added trancexxx's suggestion to remove any left over temporary directories. - Replaced some StringTrim calls with cleaner StringRegExpReplace calls. - Moved a few repetitive lines of code into functions. - Moved a few repetitive lines of code into functions. - Moved a few repetitive lines of code into functions. =========================== _Zip.au31 point -
Bumping your own thread within 24hrs in the manner in which you did is extremely rude and quite unacceptable - what is urgent to you is almost certainly not to anyone else here. Every thread you have started so far has referred to the adf.ly site and has been locked. So I am going to do 3 things: - 1. Lock your latest thread to maintain your 100% record. - 2. Ban you for a week. - 3. Warn you that if you ever post another adf.ly related question, you will be removed permanently. I hope that is quite clear. M231 point
-
New controls in Autoit3
czardas reacted to Xenobiologist for a topic
Hi guys, I read these threads: and I thought about, is it possible to add such things to Autoit core or make it available by creating a free dll or UDF? There are lot of Windows controls which are available through functions included in Autoit3 core and there are some additional things added via UDFs. Can somebody explain to me, what needs to be done to have the possibility to create menus like in Excel and so on with Autoit. Thanks! Sorry, I'm no C++ programmer and that is why, I do not know much about these COM objects and .Net classes ... So, please do not flame me. Mega1 point -
Do I? I wouldn't say it was clumsy. I've actually enjoyed our little spat over in the examples section. -_0 I've actually learnt a lot from that discussion.1 point
-
guinness, I am sure it is the only way - the number of times I thought I had the pattern correct only to find it was not.... M231 point
-
@George, Don't even worry for one second that our "friend" acidman (or whatever his nick is today) is taken serious by anybody being a regular here. I have only read stupid remarks from him so just ignore him.. these types come and go. Jos1 point
-
acidman, The day you stop learning is the day you die - no-one knows it all as some of us proved a few days ago. M231 point
-
That's what I do these days, though for ease I use Enum to replace index values.1 point
-
Until there is a plugin we can use this COM dll. ;zip functions using x-zip.dll ;Get the dll here ;http://xstandard.com/printer-friendly.asp?id=C9891D8A-5390-44ED-BC60-2267ED6763A7 ;quick and dirty example of zip functionality in autoit. dim $oMyError ; Initialize SvenP 's error handler $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ;Show version as proof object created. $objZip = ObjCreate("XStandard.Zip") MsgBox(0,"Version","Version "&$objZip.Version) $objZip = "" ;Add/Create archive $objZip = objCreate("XStandard.Zip") ; .Pack(Source file, Dest archive) $objZip.Pack ("c:\reportcard1.jpg","C:\Temp\Report.zip") $objZip.Pack ("c:\reportcard.bmp","C:\Temp\Report.zip") $objZip = "" ; get archive contents $message ="" $objZip = ObjCreate("XStandard.Zip") ; .Contents(Zip.file.to.get.contents.of) For $objItem In $objZip.Contents("C:\Temp\archive.zip") $message &= $objItem.Path & $objItem.Name & @CRLF Next MsgBox(0,"Contents",$message) $objZip = "" $objItem = "" ;Extract archive to folder $objZip = ObjCreate("XStandard.Zip") ; .UnPack( Zip file , Destination) $objZip.UnPack ("C:\Temp\archive.zip", "C:\Temp\archive") $objZip = "" ;Extract archive using wildcards $objZip = ObjCreate("XStandard.Zip") ; .UnPack (Zip Archive, Dest "*.Whatever") $objZip.UnPack ("C:\Temp\archive.zip", "C:\Temp\wild", "*.jpg") $objZip = "" Exit ; these functs not tested but should work as written ;Archive with different compression levels $objZip = ObjCreate("XStandard.Zip") ; .Pack (Source file, Dest Archive, Keep path (0=false), compression level) $objZip.Pack ("C:\x-zip.doc", "C:\Temp\archive.zip",0 , 9) $objZip.Pack ("C:\sky.jpg", "C:\Temp\archive.zip", 0, 1) $objZip = "" ;Create with default path $objZip = ObjCreate("XStandard.Zip") $objZip.Pack ("C:\x-zip.doc", "C:\Temp\archive.zip", 1) $objZip.Pack ("C:\sky.jpg", "C:\Temp\archive.zip", 1) $objZip = "" ;Create with custom paths (tested and working) $objZip = ObjCreate("XStandard.Zip") ; .Pack (Source file, Dest Archive, Keep path (1=TRUE), Path or default if left blank) $objZip.Pack ("C:\x-zip.doc", "C:\Temp\archive.zip", 1, "files/word") $objZip.Pack ("C:\sky.jpg", "C:\Temp\archive.zip", 1, "files/images") $objZip = "" ;Create archive using wildcards $objZip = ObjCreate("XStandard.Zip") $objZip.Pack ("C:\*.jpg", "C:\Temp\images.zip") $objZip = "" ;Remove file from archive $objZip = ObjCreate("XStandard.Zip") $objZip.Delete ("sky.jpg", "C:\Temp\images.zip") $objZip = "" ;Move file within archive $objZip = ObjCreate("XStandard.Zip") $objZip.Move ("files/images/sky.jpg", "images/sky.jpg", "C:\Temp\images.zip") $objZip = "" ;Rename file in archive $objZip = ObjCreate("XStandard.Zip") $objZip.Move ("files/images/sky.jpg", "files/images/sky1.jpg", "C:\Temp\images.zip") $objZip = "" Func MyErrFunc() $HexNumber=hex($oMyError.number,8) Msgbox(0,"AutoItCOM Test","We intercepted a COM Error !" & @CRLF & @CRLF & _ "err.description is: " & @TAB & $oMyError.description & @CRLF & _ "err.windescription:" & @TAB & $oMyError.windescription & @CRLF & _ "err.number is: " & @TAB & $HexNumber & @CRLF & _ "err.lastdllerror is: " & @TAB & $oMyError.lastdllerror & @CRLF & _ "err.scriptline is: " & @TAB & $oMyError.scriptline & @CRLF & _ "err.source is: " & @TAB & $oMyError.source & @CRLF & _ "err.helpfile is: " & @TAB & $oMyError.helpfile & @CRLF & _ "err.helpcontext is: " & @TAB & $oMyError.helpcontext _ ) SetError(1); to check for after this function returns Endfunc I tested a few of the fuctions and they seem to work. The examples here are just converted from the .asp examples provided on the dll web page and are given only as proof it works. Enjoy EDIT In case the link is dead, here is the main page http://xstandard.com/default.asp click on all products, the down a little ways is zip component.1 point
-
Hi try this Style $input1=GUICtrlCreateInput("ok copy me!",0,40,-1,-1,$ES_READONLY,$WS_EX_TOOLWINDOW ) Or $input1=GUICtrlCreateEdit("ok copy me!",0,40,-1,-1,$ES_READONLY,$WS_EX_TOOLWINDOW )1 point