z would be for speed check autoit doc
you should use a wrapper for all. check bkbot, line per line, and determine which codes uses coords or not and create your own wrapper function that will translate 1920x1080p coords into 720p coords. its easier that way. however, you should also be aware, there are codes that checks for pixels at specific coords, this is a lot trickier to convert.
Here is what I am doing with a different script. These are wrapper/conversion functions converting 1920x1080 coords to a coord on the existing display resolution:
Code:
func XRatio($x)
return( int($x*@DesktopWidth/1920) )
endfunc
func YRatio($y)
return( int($y*@DesktopHeight/1080) )
endfunc
Then on the main codes that was written for 1920x1080, let us say the Loot function ScanPick, without touching the numbers.
Code:
func ScanPick ($color)
local $coord = PixelSearch( XRatio(960*0.5), YRatio(480*0.5), XRatio(960*1.5), YRatio(480*1.5), $color, 0)
if @error = 0 then
MouseClick("left", $coord[0], $coord[1], 1, 0)
sleep($PickDelay)
return (1)
endif
return (0)
endfunc
In the above, i didnot wrap MouseClick because, the coords therein are in current/target display resolution already.