Jump to content

Scripting and Development

Sign in to follow this  

13 files

  1. Dbug - another debugger for AutoIt

    Dbug is graphical debugger for AutoIt.
    Project started by @Heron in 2009 and now supported by @asdf8 and @valdemar1977.
    Features
    Debug the complete script or just parts of it Display run status (line number of currently executed function) GUI default always-on-top in the upper right corner for comfortable debugging WM_NOTIFY and WM_COMMAND hook to prevent interference with possible message handlers Display scope, type and value of variables, expressions, macro's and constants (global AND function local) Execute commands in an immediate window. Can be expressions, functions and assignments Detailed display of array, struct and object variables Dynamic display of variable value in the source code (under cursor) Array table viewer with ability to view the sub-arrays, the correct handling of macro @Error, @Extended and other changes OEM and ANSI console output Conditional breakpoints Saving settings and debugging state and much more... How to use
    Extract from downloaded archive _Dbug.au3 to your Autoit include dir Add #include <_Dbug.au3> in to your code and run code Before compile or buid comment or remove #include <_Dbug.au3> from your code

    697 downloads

       (0 reviews)

    0 comments

    Updated

  2. Control Viewer

    Control Viewer - AutoIt Window Info Tool By Yashied, March 19, 2011 in AutoIt Example Scripts 
    ( mirror for original code )

    99 downloads

       (0 reviews)

    0 comments

    Submitted

  3. cDebug.au3

    cDebug.au3 includes four main debugging UDFs: _GuiDebug(), _ConsDebug(), _ClipDebug() and _FormatValsForDebug(). They all dump the values of all AutoIt subtypes and expressions, in a structured manner, including nested arrays (up to 3 dimensions) and slices of them, and even DLL structs and maps. It is an alternative to a graphical debugger, offering GUI output.
    The format for calling the UDFs has been designed to make coding a call as convenient and fast as possible, minimizing coding effort and the chances of errors: the $name argument is often the same as the variables arguments, enclosed in quote marks.
    For DLL structures, if you specify a tag, cDebug checks for differences between it and what it detects. If you only specify a structure variable, it can report the structure it detects, with the values of elements.
    It does much more than MsgBox(), ConsoleWrite() and _ArrayDisplay(), in a definitely user-friendly manner, and does its best to avoid hiding your code in SciTE.
    #include cDebug no maps.au3 or cDebug.au3 at the top of your script. If you #include cDebug.au3 (the version with maps)  #include #AutoIt3Wrapper_Version=B before #include cDebug.au3
    It is fully documented in cDebug.pdf   .  During debugging and development of new features, the current version is used to debug the upcoming version, so there is much testing, even so  bugs are always possible, particularly in new features, such as reporting elements of maps whose keys match a regular expression. Bug reports and suggestions are welcome.
    These UDFs have been in regular use for some years.
    Because when cDebug was developed, maps were a use at your own risk feature, there are two streams of cDebug:
    cDebug.au3 reports maps, so to use it you must be running a version of AutoIt that supports maps, e.g. 3.3.15.0, and #include cDebug.au3 cDebug no maps.au3 does not report maps, so you can be running any recent version of AutoIt, e.g. 3.3.14.5, and #include cDebug no maps.au3 The only difference between the two streams is that map-reporting code is commented out in cDebug no maps.au3 .
    A teaser
    This script:
    #AutoIt3Wrapper_Version=B ; beta 3.3.15.0 or greater is mandatory for cDebug.au3 #include "cDebug.au3" Local $seasons[] $seasons.summer = 'May to September' $seasons.spring = 'April' $seasons.fall = 'October to November' $seasons.winter = 'December to March' Local $aCats[3][3] = [['jack','black',3],['suki','grey',4],[$seasons,'','']] Local $i = 1 Local $tStruct = DllStructCreate('uint') DllStructSetData($tStruct,1,2018) _GuiDebug('At line '&@ScriptLineNumber,'$cats,jack is,$cats[..][$i],$i,hex,structure{uint}', _ $aCats,$aCats[0][2],$aCats,$i,Hex(-$i),$tstruct) produces:

     
    Edit history
    See documentation PDF
    Acknowledgements
    Melba23, Kafu, ProgAndy, jchd

    237 downloads

       (0 reviews)

    0 comments

    Updated

  4. CompileIt - an experimental AutoIt-to-machine code compiler

    This is an experimental AutoIt-to-machine code compiler, written in AutoIt, JavaScript and C.
    Make sure you have GCC installed and configured within CompileIt before using.

    219 downloads

       (1 review)

    0 comments

    Updated

  5. WinAPIEx_3.8

    in 
     so, here they are.

    200 downloads

       (0 reviews)

    0 comments

    Submitted

  6. dictionary_big.db

    SQLite database of English words gleaned from free and open source dictionaries
    Current version contains my full dictionary, including all file types. 
    Includes:
    word word type soundex (using my Phonetic Algorythms UDF) word length definition indexed on the word field
     

    179 downloads

       (0 reviews)

    0 comments

    Updated

  7. ChakraCore UDF

    A basic UDF enabling JavaScript execution using Microsoft's ChakraCore engine.

    322 downloads

       (0 reviews)

    0 comments

    Updated

  8. dictionary.db

    SQLite database of English words gleaned from free and open source dictionaries
    Current version contains only adjectives and nouns. 

    348 downloads

       (0 reviews)

    0 comments

    Submitted

  9. PhoneticAlgorithms.au3

    Calculates various forms of soundex (English) including:
    SoundexNARA - soundex as prescribed by the U.S. National Archives & Records Administration (Census) SoundexNum - (old school) soundex with numbers only result LevenshteinDistance - Evaluates how many additions/subtractions/substitutions are needed to make the strings identical DamerauLevenshteinDistance - Same as LevenshteinDistance, but also accounts for transposed (switched & adjacent) characters

    83 downloads

       (0 reviews)

    0 comments

    Submitted

  10. Experimental Maps UDF

    Hello Everyone!
    I made a UDF for the new Maps Datatype, I tried to follow Best Coding Practices & UDF-Specs while making this. Please note that this UDF is in very early stages. A thanks to @boththose for ideas on functions (like _Maps_IniToMap).
    If you have any suggestions, improvements, complaints, feature requests etc. Please don't hold back anything which can help improve this UDF! I will continue to develop this UDF as long as the Official AutoIt Dev Team adapts it (or makes another version of this UDF) .
    Enjoy! TD

    294 downloads

       (0 reviews)

    0 comments

    Updated

  11. Process UDF

    Hello Everyone , Are you tired of searching the forum for getting both the exit code & the stdout output? Then your are in the right place!

    With this UDF you can get the both output & exit code of the command or the console app! Or you can get the exit code of another process without having to use RunWait...
    Features:
    1. Simple & Lightweight (15 KB)
    2. Detailed comments & description
    3. Flexible functions with many optional parameters
    A BIG THANKS TO PsaltyDS for the functions! 2 of the (main) functions in the UDF are his work
     
    List of functions:

    561 downloads

       (3 reviews)

    3 comments

    Updated

  12. GRM Helper

    This program will help you to automatically generate code for GUIRegisterMsg function. Select a control name from the combo box. Then the listView will populate the events of that control. If you click on any event name, you can see the event description in the edit box. Type your control's handle in the Control Handle textbox. Then type the line number where you want to call the function. Then type the line number where you want to add the actual function code. Then press Insert ToSciTE button. That's all. 
    Here is the code generated by this program.
    GUIRegisterMsg($WM_COMMAND, "WM_COMMAND") Func WM_COMMAND($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $iMsg Local $hWndFrom, $iIDFrom, $iCode, $hWndListBox If Not IsHWnd($Sample) Then $hWndListBox = GUICtrlGetHandle($Sample) $hWndFrom = $lParam $iIDFrom = BitAND($wParam, 0xFFFF) ; Low Word $iCode = BitShift($wParam, 16) ; Hi Word Switch $hWndFrom Case $Sample, $hWndListBox Switch $iCode Case $LBN_SELCHANGE ; Insert your code here Case $LBN_DBLCLK ; Insert your code here Case $LBN_SELCANCEL ; Insert your code here EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_COMMAND  

    117 downloads

       (0 reviews)

    0 comments

    Updated

  13. Cookie Consent (Silk Tide Modification)

    This is a modification of the Cookie Consent javascript from https://silktide.com/tools/cookie-consent/
    The original was trying to be too clever for my tastes with multiple font sizes and sliders for different screen sizes. It didn't look great on my desktop, tablet, phone. It would I've stripped it down to the bare minimum to reduce distraction. It just features a single line in body text.
    The original version used an Amazon S3 address for the javascript and CSS which was OK but the Cache-Control / Expires headers are not present which wasn't great for PageSpeed/YSlow reports and caching. With this version you have to self-host the files. Of course if you use a CDN you can upload them there too.
    Whether it complies with the EU cookie law as implemented in your country is for you to determine - this implementation is fine for the UK and common to a number of notable websites such as http://www.theregister.co.uk (it's what I modelled the banner and CSS on).
    To use:
    - Upload the js and css files to your host somewhere. 
    - Add this code to your pages just before the </head> tag. Modify the text as required and adjust the url for the css. 
    Example:
    <!-- Begin Cookie Consent --> <script type="text/javascript"> window.cookieconsent_options = {"message":"This website uses cookies","dismiss":"Close","learnMore":"Find out more","link":"https://www.yoursite.com/site/cookie-policy/","theme":"//www.yoursite.com/js/cookieconsent/cookieconsent-dark.css"}; </script> <script type="text/javascript" src="//www.yoursite.com/js/cookieconsent/cookieconsent.min.js"></script> <!-- End Cookie Consent -->  
    See the forum url for more details/discussion..

    136 downloads

       (0 reviews)

    0 comments

    Updated

Sign in to follow this  
×