Scripting and Development

Sign in to follow this  
Followers 0

12 files

  1. 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 and slices of them, and even DLL structs. 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.
    #include cDebug.au3 at the top of your script.
    It is fully documented in cDebug.pdf   .  During development of new features, the current version is used to debug the upcoming version, so there is much testing.
    These UDFs have been in regular use for some years. Suggestions and bug reports are most welcome.
    A teaser
    This script:
    #include "CDebug.au3" Local $aCats[2][3] = [['jack','black',3],['suki','grey',4]] 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
    1.0.0    First release to AutoIt forum
    1.1.0    Added _GuiDebug()
    1.2.0    _GetCtrlFontSize() determines font name and point size; internal functions renamed to _cDebug_*
    1.3.0    Added subtypes so now handles all Autoit subtypes; improved layout of results; fixed 2 bugs in Slices
    1.4.0    Added display only a limited number of elements; added __ChangeElementLimitForDebug and the Change element limit button; detects more user errors in Slices
    1.4.1    For binary variables with long values, shortened displayed value
    1.4.2    Fixed Copy Data button not disabling after copying to Clipboard
    1.4.3    Removed false detection of user error
    1.5.0    Added ability to display structs with a tag specified, and without
    1.5.1    Commented out call to _cDebug_Example(); Incorporated _StringSize() so no more #include "StringSize.au3"
    1.5.2    Added reporting struct, endstruct and align; fixed string value containing single quote mark
    1.5.3    Removed duplicate #include-once at line 1534
    1.6.0    Changed the default for value parameters; added info messages when comparing a user tag and a determined tag; improved logic for comparing tags
    1.6.1    Various small bug fixes; Note re detection now per main UDF call was per name-value pair; parent GUIs now lose focus properly
    1.6.2    Removed ! From _cDebug_Example()
    Acknowledgements
    Melba23, Kafu, ProgAndy, jchd

    37 downloads

       (0 reviews)

    0 comments

    Updated

  2. 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.

    128 downloads

       (1 review)

    0 comments

    Updated

  3. in 
     so, here they are.

    100 downloads

       (0 reviews)

    0 comments

    Submitted

  4. 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
     

    155 downloads

       (0 reviews)

    0 comments

    Updated

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

    290 downloads

       (0 reviews)

    0 comments

    Updated

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

    265 downloads

       (0 reviews)

    0 comments

    Submitted

  7. 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

    71 downloads

       (0 reviews)

    0 comments

    Submitted

  8. 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

    271 downloads

       (0 reviews)

    0 comments

    Updated

  9. 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...

    489 downloads

       (0 reviews)

    0 comments

    Submitted

  10. 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:

    491 downloads

       (3 reviews)

    3 comments

    Updated

  11. 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  

    105 downloads

       (0 reviews)

    0 comments

    Updated

  12. 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..

    124 downloads

       (0 reviews)

    0 comments

    Updated

Sign in to follow this  
Followers 0