Hate to see you tire out your fingers so in case you haven't already done it, here is a quick and dirty example that may speed things a bit.
;; Note: If WinBatch was not manifested to be DPI aware
;; this would not work. But it is so it does.
hDC = DllCall("User32.dll", long_ptr:"GetDC", lpnull)
LOGPIXELSX = 88
nPixPerInchX = DllCall("Gdi32.dll", long:"GetDeviceCaps", long:hDC, long:LOGPIXELSX)
;; 96 is the default Windows scaling.
nScallingPercent = (nPixPerInchX/96.0) * 100
x = DllCall("User32.dll", long:"ReleaseDC", lpnull, long:hDC)
Message("Desktop Scalling", nScallingPercent:"%%")
;; This would require Windows 10 - 1604 or later
;;nPixPerInchX10 = DllCall("User32.dll", long:"GetDpiForWindow", long:DllHwnd(""))
exit