WinGet, windowlist, list, World of Warcraft ; Get list of World of Warcraft Window ID's Loop, %windowlist% { StringTrimRight, windowid, windowlist%a_index%, 0 if a_index = 1 ControlClick, x432 y875, ahk_id %windowid% }
Controlsend works fine, but i need to use the mouse