Code:
Test1Btn:CoordMode, Mouse, Screen
MouseClick, left, 820, 830, 2
return
Then I expand the code to the following,
CoordMode, Mouse, Screen
MouseGetPos, MX, MY
Loop, %MaxAcct% ; loop thru all your wow accounts
{if ( ACT%A_Index%Role = 3 ) ; for healers only
{
this_id := WowWinId%A_Index%
if this_id <> 0
{
str = {Shift down}{F6 down}{F6 up}{Shift up} ; get healer to call healing macro. The macro is called via SHIFT-F6 in wow in my case
ClonePush(str, this_id)
; translate MX & MY to slave screen coordinate, and store in tx, RY
.....
MouseClick, left, tx, RY, 2 ; double left click at healer screen. tx,Ry is the calculated coordinate, based on MY, MY and CoorMode
; may need to insert delay here, it depends on your system's responsiveness to mouse click on non topmost screen
}
}
}
MouseClick, left, MX, MY, 2 ; move mouse back to main window
return
Connect With Us