![]() ![]() The translation from v1-command to function is generally as follows (but some functions have been changed, as documented further below): Method call statements (method calls which omit parentheses) are restricted to a plain variable followed by one or more identifiers separated by dots, such as "String to pass". ![]() ![]() Unquoted percent signs in expressions are used only for double-derefs/dynamic references, and having an odd number of them is a syntax error. There is no percent-space prefix to force an expression.For consistency, directives also follow the new convention (there must not be a comma between the directive name and parameter). There is no comma between the function name and parameters, so WinMove(, y) = WinMove, y (x is omitted).Use concatenation or Format to include variables in text. Normal variable references are never enclosed in percent signs (except with #Include and #DllLoad).there is no output variable for the return value, so it is discarded if parentheses are omitted. Parameters are the same regardless of parentheses i.e.Currently this excludes a few directives (which are neither commands nor functions). All parameters are expressions, so all text is "quoted" and commas never need to be escaped.All functions can be called without parentheses if the return value is not needed (but as before, parentheses cannot be omitted for calls within an expression).All former commands are now functions (excluding control flow statements).There are no "commands", only function call statements, which are just function or method calls without parentheses. Removed all legacy If statements, leaving only if expression, which never requires parentheses (but allows them, as in any expression). Keyboard, Mouse, Hotkeys and Hotstrings.Changes from v1.1 to v2.0 | AutoHotkey v2 Changes from v1.1 to v2.0 Table of Contents ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |