Beginning AutoHotkey Hotstrings: A Practical Guide for Creative AutoCorrection, Text Expansion and Text Replacement (AutoHotkey Tips and Tricks Book 6) by Jack Dunning

Beginning AutoHotkey Hotstrings: A Practical Guide for Creative AutoCorrection, Text Expansion and Text Replacement (AutoHotkey Tips and Tricks Book 6) by Jack Dunning

Author:Jack Dunning [Dunning, Jack]
Language: eng
Format: epub
Publisher: ComputorEdge E-Books
Published: 2016-01-24T23:00:00+00:00


The first is the StringSplit command which separates (parses) the list of Words into individual pieces. In the above function, StringSplit automatically breaks up the TextOptions word list into each word and stores it in a different numbered variable. Note that the function assigned the variable TextOptions (inside the parentheses) to the list of words passed to the function. The variable TextOptions only temporarily exists within the function and does not affect any other part of the script.

The line of code (StringSplit, MenuItems, TextOptions , `,) saves the parsed words to a set of MenuItems variables (i.e. MenuItems1 , MenuItems2 , and MenuItems3). There is an additional variable created (MenuItems0) which contains the number of words in the list. Any character may be used to delimit and separate the words (designated by the parameter at the the end of the StringSplit command line), but, since the comma is commonly used in lists, here it acts as the delimiter. However, since the comma is a special character it needs escaping with the backtick character (`,).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.