I understand the documentation to mean that a maximum of 8 parameters can be specified:
I also understand this to mean that if one chooses to omit any parameters while also attempting to specify parameters of higher number, then one must use commas to tell AHK which higher-number parameter is being specified.
In the following script, my intent is:
- When a user keystroke of lowercase b is entered, it executes a single click on the control "Static232" in window 797108.
- When a user keystroke of uppercase B is entered, it executes a double click on the control "Static232" in window 797108.
Code: Select all
b::
{
ControlClick "Static232", 797108
return
}
+b::
{
ControlClick "Static232", 797108, , , 2
return
}