Based on a discussion I was in involved in today
I think it might be good to amend the manual regarding forcing an expression and the Click command. You cannot force an expression for individual parameters but you can force an expression for the entire line of parameters:
x := 256,y := 1188
Click, %x%, % y ; does not work
Click % x, %y% ; does not work
Click, % x "," y ; works
Documentation is where it gets tricky since it will require clarification on the Click command page and may require clarification under the Forcing an Expression sub-topic on the Variables and Expressions page. Here's my suggestion if such an amendment to the manual is reasonable. On the Click page:
Click does not support parameter expressions since it has no explicit parameters, but you can force an expression in the Click command (see Remarks). Otherwise, variables should be enclosed in percent signs.
Under the Remarks
sub-topic for Click:
To force an expression using the Click command, the entire command line must be forced as an expression:
Click %x%, %y%
Click % x "," y ; equivalent to the above command
Click right %x% %y%
Click % "right " x " " y ; equivalent to the above command
And under the Forcing an Expression sub-topic of Variables and Expressions:
Force an expression: An expression can be used in a parameter that does not directly support it (except an OutputVar or InputVar parameter such as those of StringLen) by preceding the expression with a percent sign and a space or tab. This technique is often used to access arrays. For example:
FileAppend, % MyArray%i%, My File.txt
MsgBox % "The variable MyVar contains " . MyVar . "."
Loop % Iterations + 1
WinSet, Transparent, % X + 100
Control, Choose, % CurrentSelection - 1
The Click command is an exception to the typical method of forcing an expression, see the Remarks sub-topic of the Click command for information.
Credit goes to answer4u.