GetProfileInt 方法 (Editor 对象)¶
按 EmEidtor 的设定,从注册表或一个 INI 文件上检索指定项目的整数值。
¶
[JavaScript]¶
n = editor.GetProfileInt( nKey, strConfig, strEntry, nDefault );
[VBScript]¶
n = editor.GetProfileInt( nKey, strConfig, strEntry, nDefault )
参数¶
nKey
用下列值之一来指定一个键值。eeRegConfig 和 eeRegEmEditorPlugin 需要 pszConfig 参数来指定键值。
eeRegCommon | HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\Common or eeCommon.ini\[Common] |
eeRegRegist | HKEY_CURRENT_USER\Software\EmSoft\Regist or eeCommon.ini\[Regist] |
eeRegMacros | HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\Macros or eeCommon.ini\[Macros] |
eeRegPlugins | HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\PlugIns or eeCommon.ini\[PlugIns] |
eeRegRecentFileList | HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\Recent File List or eeCommon.ini\[Recent File List] |
eeRegRecentFolderList | HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\Recent Folder List or eeCommon.ini\[Recent Folder List] |
eeRegRecentFontList | HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\Recent Font List or eeCommon.ini\[Recent Font List] |
eeRegRecentInsertList | HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\Recent Insert List or eeCommon.ini\[Recent Insert List] |
eeRegAutoSave | HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\AutoSave or eeCommon.ini\[AutoSave] |
eeRegLMCommon | HKEY_LOCAL_MACHINE\SOFTWARE\EmSoft\EmEditor v3\Common or eeLM.ini\[Common] |
eeRegLMRegist | HKEY_LOCAL_MACHINE\SOFTWARE\EmSoft\Regist or eeLM.ini\[Regist] |
eeRegConfig | HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\Config\(pszConfig) or eeConfig.ini\[(pszConfig)] |
eeRegEmEditorPlugins | HKEY_CURRENT_USER\Software\EmSoft\EmEditorPlugIns\(pszConfig) or eePlugins.ini\[(pszConfig)] |
eeRegEmEditorUsers | HKEY_CURRENT_USER\Software\EmSoft\EmEditorUsers\(pszConfig) or eeUsers.ini\[(pszConfig)] |
strConfig
用一个额外的字符串来指定键值当 eeRegConfig,eeRegEmEditorPlugin,或 eeRegEmEditorUsers 被选择时。
strEntry
指定要被检索的值的名称。
nDefault
指定默认值假如没有找到或不能检索该值。
版本¶
支持 EmEditor 8.00 或之后的版本。