I simply want to make a utility (Pixel Conversion Calculator?) that will allow you to convert pixel coordinates between resolutions. It does not seem anything like this exists. You totally put me in the right direction: Thank you!
Here is the code I have been using:
#include <array.au3>
Global $aResult = _ConvertCoords(1920, 1080, 800, 600)
_Arraydisplay($aResult)
Func _ConvertCoords($a, $b, $c, $d, $x = 960, $y = 540)
Local $ret[2] = [($x * ($c / $a)), ($y * ($d / $)]
Return $ret
EndFunc ;==>_ConvertCoords
This converts the pixel coordinates given in $x and $y. From resolution a, b (in this case 1920 by 1080) to the desired resolution pixel coordinates (in this case 800 x 600).
Example: [($x * ($c / $a)), ($y * ($d / $)]
is 960 (1920/800), 540(1080/600) = 960(.4166), 540(.4166) = 400, 300
1. Ideally the array would allow you to input the values for $x and $y so it could be a stand alone utility.
2. Even better If you could also change the values for $a,$b,$c,$d then you would also be able to modify the resolution on the fly as well.