Video Hour 1: High-level overview:
In the first hour of our AutoHotkey webinar we demonstrated Quick Access Popup from our guest speaker Jean Lalonde. It is an amazingly customizable tool that allows you to have what you want at your fingertips!
Here is an abbreviated list of some of the great features:
- Create shortcuts to folders, programs, files, links, Snippets, special folders, etc.
- Easily create Hotkeys for above shortcuts
- Works with most Open/Save dialog boxes
- Integrated with most file managers (Windows Explorer, Directory Opus, Total Commander, etc.)
- The tool itself is highly customizable
- Have “shared” sections as well as individual ones
- Organize your menu into folders & sub-folders
- Customize Menu/GUI shortcut with an icon (that makes sense to you)
- Available in 10 languages
You can watch a short overview video here or get a deeper dive here. Jean was kind enough to walk me through his tool in this video.
We then talked about what a “text file” is and frequent sources of them (Export from programs, sever logs, emails, etc). We also briefly discussed what is File / Character Encoding & why are there frequent problems with it (this is a very deep topic which we could have spent days discussing!)
Also discussed what a “flat file” is and how they are different than:
- Multi-row files
- Relational files
- XML and JSON files
We then shared some of the frequently used built-in commands and functions for parsing text in AutoHotkey.
- File Object, FileOpen, FileRead, FileReadLine, Loop (read file contents), Loop Files & Folders– Opening / reading a text file
- FileAppend – Writes text to the end of a file (first creating the file, if necessary).
- FileEncoding – Sets the default encoding for FileRead, FileReadLine, Loop Read, FileAppend, and FileOpen
- IfInString/ InStr() – Checks if a variablecontains the specified string.
- Loop (parse a string) – Retrieves substrings (fields) from a string, one at a time. (CSV helpful option)
- RegExMatch() / ~= – Determines whether a string contains a pattern (regular expression). (Check out RegEx Webinar)
- RegExReplace() – Replaces occurrences of a pattern (regular expression) inside a string.
- SplitPath – Separates a file name or URL into its name, directory, extension, and drive.
- StringLen / StrLen() – Retrieves the count of how many characters are in a string.
- StringLeft, StringRight – Retrieves a number of characters from the left/right-hand side of a string.
- StringMid/ SubStr() – Retrieves one or more characters from the specified position in a string.
- StringSplit / StrSplit() – Separates a string into an array of substrings using the specified delimiters.
- Trim(), Ltrim(), Rtrim() AutoTrimm – Trims characters from the beginning and/or end of a string.
Then we got into various custom-built in libraries and functions
- ObjCSV Library & CSVBuddy by Jean Lalonde
- TF: Textfile & String Library for AutoHotkey Forum link from HugoV
- String Things from tidbit
- StringMod() String Manipulation – Enhanced by PhiLho / Titan
- StringSlice() by SKAN
- CSV Library by kdoske
- Table Manipulation by VxE
- Sift – Fuzzy Search by RegEx and Ngram by FanaticGuru
- Elaborate CSV Functions by trueski
- CSVed – not ahk but cool (free) program that works with any delimiter by Sam Francke
Then our guest speaker, Jean, took over walking us through some examples of common problems with AutoHotkey LoopParse command
- Loop, Parse, InputVar [, Delimiters, OmitChars]
- If Delimiters is “CSV”, InputVarwill be parsed in standard comma separated value format.
- About CSV http://en.wikipedia.org/wiki/Comma-separated_values
The library is pretty cool and here are some of the main functions available:
- CSV2Collection() – Transfer the content of a CSV file to a collection of objects.
- Collection2CSV() – Transfer the selected fields from a collection of objects to a CSV file.
- Collection2Fixed() – Transfer the selected fields from a collection of objects to a fixed-width file.
- Collection2HTML() – Builds an HTML file based on a template where variables are replaced with content.
- Collection2XML() – Builds an XML file from the content of the collection.
- Collection2ListView() – Transfer the selected fields from a collection of objects to ListView.
- ListView2Collection() – Transfer the selected lines of the selected columns of a ListView to a collection of objects.
ObjCSV Examples: Here are the files Jean worked through.
- SIMPLE CSV FILE – COMA DELIMITED (TheBeatles-coma.txt)
- SIMPLE CSV FILE – TAB DELIMITED – ISSUE #1 (TheBeatles-tab.txt)
- MULTI-LINE CSV FILE – COMA DELIMITED – ISSUE #2 (TheBeatles-Lyrics.txt)
Jean then gave us a review of how to use his ObjCSV library
- Example using ObjCSV_CSV2Collection
- SIMPLE CSV FILE – COMA DELIMITED (TheBeatles-coma.txt)
- SIMPLE CSV FILE – TAB DELIMITED – ISSUE #1 SOLVED (TheBeatles-tab.txt)
- MULTI-LINE CSV FILE – COMA DELIMITED – ISSUE #2 SOLVED (TheBeatles-Lyrics.txt)
- PROGRESS BAR WITH LARGE CSV FILE – SEMI-COLON DELIMITED (LargeFile-semicolon.txt)
- CUSTOM HEADER – SIMPLE CSV FILE – COMA DELIMITED (TheBeatles-coma.txt)
- GUI Example using Collection2ListView
- SAVING WITH DIFFERENT DELIMITER using ObjCSV_Collection2CSV
- EXPORT HTML Example using ObjCSV_Collection2HTML
Wrapping up the first section we then saw a peak at CSVBuddy
CSVBuddy Examples
- Reading large file with auto-detection
- Editing field names, re-order or select fields
- Saving options
- Saving file with multi-line content converted to single-line (Excel-ready)
- Reverting the single-line file to multi-line (for example, after manipulation in Excel)
Video Hour 2: Q&A:
In the second hour we discussed various issues working with text data as well as took a deeper look into Quick Access Popup.
Near the end of the time Capn Odin shared a Trie script he’s been working on. You can check out the script on the forum








