Make this an AllRes version...just see what I did in my variation of the Mangleclaw bot here:
http://www.filedropper.com/manglemaw204v2
TL;DR
1. ADD THIS TO THE BEGINNING OF YOUR SCRIPT:
;Conversion for All Resolutions
$default_resolutionX = 1920
$default_resolutionY = 1080
$x_ratio = @Desktopwidth / $default_resolutionX
$y_ratio = @Desktopheight / $default_resolutionY
2. CHANGE EVERY CLICK LOCATION TO THIS (for X and Y, respectively):
Round(CLICKLOCATION * $x_ratio), Round(CLICKLOCATION * $y_ratio)
(Note: For Pixelsearch, you must do it twice to provide the boundaries. Also, don't do it for results generated from a Pixelsearch or other function that returns coordinates)
3. Profit.