GetCursorPosition() gives you coordinates relative to BOTTOMLEFT part of the screen, how to make it show them from another position?
I've tried finding how I can get numbers similar to GetCursorPosition() ones with calculations of screen size and UI scale, something like
Code:
local hor, ver = strsplit("x", ({GetScreenResolutions()})[GetCurrentResolution()])
print(hor .. " and " .. ver)
print(hor/UIParent:GetEffectiveScale() .. " / " .. ver/UIParent:GetEffectiveScale())
print(hor*UIParent:GetEffectiveScale() .. " * " .. ver*UIParent:GetEffectiveScale())
but it shows different numbers, currently I have 1280x1024 but this code gives me
Code:
[04:08:58] 1280 and 1024
[04:08:58] 1560.9756233719 / 1248.7804986975
[04:08:58] 1049.5999908447 * 839.67999267578
but GetCursorPosition gives me 1169.8 and 936.6 when divided with UIParent:GetEffectiveScale() when I put my mouse in the TOPRIGHT edge, so none of these numbers are correct...
My UI scale is 0.81999999284744
can someone please help me understand and find a way to do this?