I can help you with the size issue for not creating a differente program for each size.
Use
WinGetPos.
$aArray[0] = X position
$aArray[1] = Y position
$aArray[2] = Width
$aArray[3] = Height
eg. To clic on Play buton no matter the desktop size:
Code:
Func Click_Play()
Local $aPos = WinGetPos("PVP.net Client") ;get the position of the LoL Client
MouseClick("left", $aPos[0] + ($aPos[2] / 2), $aPos[1] + ($aPos[3] / 15), 1) ;MouseClick("left", PosX + (Width / 2), PosY + (Height / 15), 1)
EndFunc ;==>Click_Play
Tested in all resolution it works.
It's late for me now but if you want I can help you with other clicks.
Also an easy exit button would be great, somthing like that:
Code:
HotKeySet("{END}", "Stop")
Func Stop()
Exit
EndFunc ; >Stop