Log in

View Full Version : Script for Right-clicking in the second window



URgunnaDIEclown
08-13-2008, 10:36 PM
I figure with practice I can right click in the second window and get my second multi-box toon to loot and skin. Just gotta know where to click.

I'm newb on the syntax, so all help is appreciated.

I want to send the right click at the cursor coordinates to the other (not active) WoW window when I middle click.

Can anyone help me getting it to work?



Mbutton::
{
IfWinActive, ahk_id %WowWinId1%
ControlClick, Pos, ahk_id %WowWinId2%, RIGHT
IfWinActive, ahk_id %WowWinId2%
ControlClick, Pos, ahk_id %WowWinId1%, RIGHT
}

URgunnaDIEclown
08-21-2008, 06:06 PM
There were two syntax errors


Mbutton::
IfWinActive, ahk_id %WowWinId1%
ControlClick, Pos, ahk_id %WowWinId2%, , RIGHT
IfWinActive, ahk_id %WowWinId2%
ControlClick, Pos, ahk_id %WowWinId1%, , RIGHT
RETURN

#1 the {} brackets are the wrong group symbol for the body. The return line handles this.

#2 there is a BLANK optional argument before the right click.