Hi people, I need some help with a piece of NSIS code from someone who knows what he's doing.
I have managed to implement automatic resolution detection in my portable app using the code from this thread:
https://portableapps.com/node/31743 namely:
${SegmentFile}
${SegmentInit}
System::Call user32::GetSystemMetrics(i0)i.r0
System::Call user32::GetSystemMetrics(i1)i.r1
${SetEnvironmentVariable} ScreenHeight $0
${SetEnvironmentVariable} ScreenWidth $1
!macroend
Now for the question, how do i do the same thing for the refresh rate and set it to something like %FrameRate%?
Also, when that's done, how do i use the NSIS code to divide 1 by %FrameRate%?
Any help would be very much appreciated.
Thanks a lot for your time.