This is the script i'm using for clicking.Originally Posted by Gnomon
I've got it set so when I click in a certain area (where my blank macro's are on my first wow client (warrior) it'll cast a macro on my second client (priest).
[code:1]LButton::
MouseGetPos, x, y
If (y > 879 and y < 914) {
If (x > 787 and x < 834)
ControlSend,,{shift down}{5 down}{5 up}{shift up}, ahk_id %wowid2% ; Heal Priest
Else If (x > 864 and x < 907)
ControlSend,,{shift down}{6 down}{6 up}{shift up}, ahk_id %wowid2% ; Shield Priest
Else If (x > 935 and x < 978)
ControlSend,,{shift down}{7 down}{7 up}{shift up}, ahk_id %wowid2% ; Renew Priest
Else If (x > 1005 and x < 1049)
ControlSend,,{shift down}{8 down}{8 up}{shift up}, ahk_id %wowid2% ; Fortitude Priest
Else
Click
}
MouseGetPos, x, y
If (y > 792 and y < 835) {
If (x > 787 and x < 834)
ControlSend,,{shift down}{1 down}{1 up}{shift up}, ahk_id %wowid2% ; Heal Warrior
Else If (x > 864 and x < 907)
ControlSend,,{shift down}{2 down}{2 up}{shift up}, ahk_id %wowid2% ; Shield Warrior
Else If (x > 935 and x < 978)
ControlSend,,{shift down}{3 down}{3 up}{shift up}, ahk_id %wowid2% ; Renew Warrior
Else If (x > 1005 and x < 1049)
ControlSend,,{shift down}{4 down}{4 up}{shift up}, ahk_id %wowid2% ; Fortitude Warrior
Else If (x > 1181 and x < 1231)
ControlSend,,{shift down}{9 down}{9 up}{shift up}, ahk_id %wowid2% ; Fade Priest
Else
Click
}
MouseGetPos, x, y
If (y > 750 and y < 795) {
If (x > 602 and x < 651)
ControlSend,, 1, ahk_id %wowid2% ; Follow Warrior
If (x > 676 and x < 721)
ControlSend,, S, ahk_id %wowid2% ; Stop Follow Warrior
If (x > 462 and x < 506)
ControlSend,, 4, ahk_id %wowid2% ; Drink and Eat
Else
Click
}
Else
Click
Return[/code:1]
You can use this to get co-ordinates.
[code:1]#Persistent
SetTimer, ShowMousePos, 5000
return
ShowMousePos:
MouseGetPos, x, y
ToolTip, %x%`, %y%
return[/code:1]
Connect With Us