I created several associative arrays (let's call 'em AA) which have stored 3 different values.
X coordinate, y coordinate, click amount.
It's possible that my mouse cursor gets moved to the coordinates, but the clicking does not work.
That's the script (I also tried different variations):
Code: Select all
F11::
objectA := {x:532, y:368, r:1}, objectB := {x:64, y:68, r:2}, objectC := {x:96, y:68, r:0} ; List of associative arrays
MouseMove, objectA.x, objectA.y, 0 ; Move mouse to x, y coordinates of objectA (fastest speed)
Send {rbutton objectA.r} ; Click rbutton as often as declared in objectA - DOES NOT WORK !
;Send {rbutton %objectA.r%} ; Click rbutton as often as declared in objectA - DOES NOT WORK - "ILLEGAL CHARACTER"
;Send {rbutton %objectA%.r} ; Click rbutton as often as declared in objectA - DOES NOT WORK !
;Send {rbutton objectA.%r%} ; Click rbutton as often as declared in objectA - DOES NOT WORK !
return
Code: Select all
^F11:: ; Ctrl+F11
a = 1 ; amount = 1
Send {rbutton %a%} ; Click rbutton as often as declared in a
return
Or do I need another support variable which retrieves the AA value of r?
P.S.
I also made
Code: Select all
objectA := {f:10, x:532, y:368, r:1}
Best regards and thanks for any help!