Review the Click-family of functions
Posted: 07 Jul 2021, 17:03
perhaps while theres still time for breaking changes before going into beta(unless breaking changes can be introduced during beta, too)
Click is a function that accepts one parameter, a string of all kinds of "parameter" combinations
Click [Options]
Click is a function that accepts one parameter, a string of all kinds of "parameter" combinations
Click [Options]
- arguably more "flexible" design(u can only include the parameters u intend to modify)
- parameter list mimics the format used by Send('{Click the_parameter_list}')
- unconventional calling interface(one argument space- and/or tab- and/or comma-separated string of parameter)
- makes it hard to compose into other functions(eg cant just use .Bind('Relative') to create a specialized, custom ClickRelative([Options]), instead have to write out a full function definition)
- looks like a normal function(and behaves like one. u can use .Bind(), variadically expand an Array of arguments into it, etc)
- the parameter list somewhat resembles that of MouseClickDrag(also the names are similar)
- often times u wont have to specify all parameters, so ull have to write ugly and confusing MouseClick(, -5, -5, , , , 'R')
but i see thats different in v2:NOTE: The Click command is generally more flexible and easier to use.
The Click command is generally preferred over MouseClick because it automatically compensates if the user has swapped the left and right mouse buttons via the system's control panel.
v2 changes wrote:MouseClick and MouseClickDrag are no longer affected by the system setting for swapped mouse buttons; "Left" is the always the primary button and "Right" is the secondary.