Code:
CoordMode, Mouse, Screen
x := 256
y := 1188
Click, % x "," y
As I understand it % forces an expression, just as if you were using the assignment operator :=
So since % x "," y (which to me seems to be a valid epxression?) works...
PostPosted: Wed Feb 03, 2010 5:22 pm Post subject:
sinkfaze wrote:
I don't think Click supports expressions, unless I missed it on an update. You could do it with MouseClick, though.
Interesting ... it think it might mean that Click doesn't support expressions like the other Commands, since its parameters are dynamic. For instance, the following works fine on my computer:
Code:
CoordMode, Mouse, Screen
x := 256
y := 1188
Click, % x "," y
Code:
Click, %x%, % 594*2
Click, % x, 1188
Simply not valid expressions, mixes of command syntax and expression operators.
So to me it seems that Click can accept an expression, but not an expression as an operator.
If I am incorrect in my thinking please correct me, trying to understand this exactly

Does this work?
Code:
Click, % x . "," . y