Thanks for sharing, djaydino!
If I'm not mistaken the code is not working as intended.
Line 76 should be like line 80.
And line 80 should use
preferedRefreshRate.Value instead of
orResolution.Value.z.
Regards
Gustav
PS The first both tooltips could also use a revision.