Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/20/2012 in all areas

  1. Here a small tool to watermark any image supported by GDI+. This version is the enhanced version from AutoIt Windows Screenshooter. Screenshot: Download: AutoIt Watermark Image v0.89 beta build 2014-08-25.7z (942 download previously) Source code is too long to publish here -> PASTEBIN You are not allowed to sell this code or use it or just parts of it in a commercial project or modify it and distribute it with a different name! Some fonts may no be displayed properly because it is not GDI+ compatible! Appreciate any feedback (bugs, feature request, criticisms, etc.). @JScript: I created this on your request Coded and tested on Win7 x64 with Aero and AutoIt v3.3.12.0. Command line parameters Credits: Authenticity (GDIP.au3), funkey (_GetFontInfoFromFilePtr()), Yashied (WinAPIEx.au3) and Melba23 (NoFocusLines.au3) Thanks to (alph. order): davidkim, funkey, JScript and Myicq for active supporting this little project! Br, UEZ History
    1 point
  2. GEOSoft

    MSAccess UDF [updated]

    There is more to come but here is what I have so far ; _accessCompactDB() * ; _accessCreateDB() ; _accessCreateTable() ; _accessDeleteTable() ; _accessListTables() ; _accessCountTables() ; _accessAddRecord() ; _accessUpdateRecord() ; _accessDeleteRecord() ; _accessClearTable() ; _accessCountRecords() ; _accessCountFields() ; _accessListFields() ; _accessQueryLike() ; _accessQueryStr() ; _accessSaveXML() In progress: _accessAppendField() _accessModifyField() _accessDeleteField() _accessQueryNum() _accessSortRecordset() _accessCompactDB() If you change or add to this UDF please post it or PM it to me for inclusion in the UDF. Please follow the UDF guidlines Edit: These functions have all been tested but not under all posible scenarios. Enjoy Edit #2 Functions marked with a * have been added Edit #3 UDF Updated with new functions. Code cleanup, error handling and it now uses _adoOpen() and _adoOpenRecordset in most functions. Edit #4 Attachment Removed. Download from ADO.zip EDIT #5 ***** Important Changes (script breakers) (1) The functions have all been renamed. This was actually done a while back and anyone that did not follow the link on my site will have the wrong file and the wrong functions. My appologies. This also explains why many people were having some difficulties. (2) The file ADO.zip is no longer valid Please download the new file by going to my site (in my sig) and in the left menu click Code>>My Extra UDFs>>Access.au3. At the bottom of the page is a download link. (3) The constants have been removed from the au3 file. It now requires that you #include <AccessConstants.au3> which must be in your AutoIt3Include folder. EDIT #6 *****IMPORTANT If you have questions about this UDF please start a thread in the General Support forum instead of cluttering this thread. This UDF is now out of development and I am no longer supporting it. because people have a hard time understanding that i won't support this udf any longer; i've chosen to remove it entirely
    1 point
  3. Melba23

    `n?

    LetsAuto, @CRLF. M23
    1 point
  4. water

    `n?

    Simply use macro @CRLF or @LF.
    1 point
  5. dany

    Basic script help

    Well good luck, have fun and when things go south, just let us know
    1 point
  6. Use the RecordCount property of the recordset object to get the number of records. Or use method .MoveFirst to move to the frist record of the recordset and process the recordset again.
    1 point
  7. FireFox

    Change Name Of file...

    Or at least someone will use his function
    1 point
  8. Melba23

    Change Name Of file...

    Draygoes, From the Help file for FileMove: "Because AutoIt lacks a "FileRename" function, use FileMove to rename a file!" You just need to know where to look! M23
    1 point
  9. Nubie, This one uses dynamically created variables (assign/eval) and does 2 files of 100000 in under 5 secs (again on a row boat PC). #include <array.au3> local $fl_name1 = @scriptdir & 'f11.txt' ; test file #1 local $fl_name2 = @scriptdir & 'f12.txt' ; test file #2 local $hlf, $ix = 100000 ; number of lines for test files ; generate two test files (format = 'random uppercase alpha' and '=' and 'random number between 0 and 9' and '0' ; file #1 does not contain any values starting with 'z' therefore resulting string will only have value starting with 'z' for $i = 1 to 2 consolewrite(eval('fl_name' & $i) & @lf) $hfl = fileopen(eval('fl_name' & $i),2) if $hfl = -1 then msgbox(0,'ERROR','Error opening file = ' & eval('fl_name' & $i)) for $k = 0 to $ix if $i = 1 then filewrite($hfl,chr(random(65,89,1)) & '=' & chr(random(48,57,1)) & '0' & @CRLF) Else filewrite($hfl,chr(random(65,90,1)) & '=' & chr(random(48,57,1)) & '0' & @CRLF) endif Next fileclose($hfl) $hfl = 0 next local $st = timerinit() local $sDiff = _FindUniqueInFile2(fileread($fl_name1),fileread($fl_name2)) consolewrite('time to run func = ' & round(timerdiff($st)/1000,2) & @lf) $aDiff = stringsplit($sDiff,'|',2) _arraydisplay($aDiff,ubound($aDiff)) func _FindUniqueInFile2($str1,$str2) local $afile1 = stringsplit($str1,@crlf,3) local $afile2 = stringsplit($str2,@crlf,3) local $out_str for $i = 0 to ubound($afile1) - 1 assign('s' & $afile1[$i],1) Next for $i = 0 to ubound($afile2) - 1 if isdeclared('s' & $afile2[$i]) then else $out_str &= stringleft($afile2[$i],1) & '=' & stringright($afile2[$i],2) & '|' endif Next $out_str = stringtrimright($out_str,1) return $out_str endfunc kylomas
    1 point
  10. Actually, I think you are talking about a group box, which is a standard control, but due to whatever crazy drugs were going around microsoft at the time, are actually buttons. See here. As a solution, Spy++ is a more advanced tool that can show you the window hierarchy (so all children etc.) You get a selector target thingy like our window info tool, which will take you to the groupboxes position in the tree, and from there you can see its children. I have absolutely no idea how you'd get hold of Spy++ on its own as it usually ships with visual studio so I've never tried installing it standalone.
    1 point
  11. AZJIO

    ColorText

    ColorText Utility for creating greeting post on the forum. The advantage Unlike similar utilities is the ability to visually adjust the color gradient. screenshot ColorText.7z (300kb, sources + EXE, v0.3.1, En+Ru)
    1 point
×
×
  • Create New...