DesktopFrequency()
语法
Result = DesktopFrequency(#Desktop)概要
Returns the frequency of the specified desktop.
参数
#Desktop The index of the desktop. The first index always specifies the primary monitor. The first index value is zero.
返回值
Returns the frequency of the specified desktop in Hertz. If the return-value is 0 then the default hardware frequency is being used, or the actual frequency could not be determined.
Remarks
ExamineDesktops() must be called before using this function to retrieve information about the available desktops. Note: on Linux, this function always returns 0.
示例
ExamineDesktops() f = DesktopFrequency(0) If f = 0 MessageRequester("Display Information", "There isn't set any desktop frequency, the standard hardware frequency is used.") Else MessageRequester("Display Information", "Frequency of desktop: "+Str(f)+" Hz.") EndIf
参阅
ExamineDesktops(), DesktopDepth(), DesktopHeight(), DesktopName(), DesktopWidth()
已支持操作系统
Windows, MacOS X