AutoHotkey example Command vs Function on String Split
Channel: AUTOHOTKEY Gurus
Date: 2022-03-07

Here I show some of the differences between using Commands and Functions in AutoHotkey.  The example I use is on StrSplit()/StringSplit  https://www.autohotkey.com/docs/commands/StrSplit.htm

Please remember to subcribe:  https://the-Automator.com/YouTube

TLDR: The video discusses various programming concepts and updates, including the use of stir split and stream split, the release of a new version of Windows, and the importance of arrays and objects in efficient coding.

1. 00:00 📝 Learn to use stir split to differentiate between commands and function calls in a string.
 1.1 Learn how to use stir split to parse a string and differentiate between a command and a function call.

2. 00:55 💰 The stock market reached an all-time high due to positive economic data and vaccine optimism.
 2.1 Use string split to parse a string on the equal sign and output an array.

3. 01:43 💻 Use stream split instead of rename command to modify arrays in programs.
 3.1 The speaker demonstrates how to use the function call stream split instead of the command to rename an array in a program.

4. 02:57 💻 Microsoft releases new version of Windows with improved features and security updates.
 4.1 Parse a new string with delimiters encapsulated in double quotes and parse on the equal sign to assign the whole thing to version, then display the second object in a message box.

5. 03:33  Access the second element in an array and assign it to a variable without creating a new variable name.

6. 04:17 💻 AutoHotkey version 2 has improved function calls for easier use of pseudo arrays.
 6.1 Version two of AutoHotkey has simpler and clearer function calls compared to version one, making it easier to access and use pseudo arrays.

7. 05:11 🔍 The speaker tried to use is object function on a pseudo array and found out it was not an object.
 7.1 The speaker attempted to use the is object function on an array but discovered it was a pseudo array and not an object.

8. 06:02 💡 Arrays and objects are 🔑 for efficient coding, allowing easy access to elements without the need for variable storage.
 8.1 Arrays and objects are preferred over commands and it's cool that we can access elements without saving them in a variable.


Summary for https://youtu.be/Qxc_1kiU2NY by www.eightify.app