Prev Previous Post   Next Post Next
Old 17th June 2019, 21:13   #1
enzeinzen
Junior Member
 
Join Date: Jun 2019
Posts: 4
Post NSIS Function to get main display refresh rate?

Hi' i'm trying to include a function in my script to detect the refresh rate of the main display. However, I do not know how to incorporate the functions into NSIS code.

I already managed to find a way to get the resolution using the following code:

System::Call user32::GetSystemMetrics(i0)i.r0
System::Call user32::GetSystemMetrics(i1)i.r1

However, in order to obtain the refresh rate, one must use EnumDisplayDevices to get the right display and then pass that to EnumDisplaySettings. I do not know how to do that.

Any help would be much appreciated. I am trying to build a portable application using the portableapps.com framework that uses NSIS language.

Thank you and sorry for being a n00b.
enzeinzen is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump