diff --git a/source/developers/plugins/cpp/api.html b/source/developers/plugins/cpp/api.html index 9e103cd6a..820551bf3 100644 --- a/source/developers/plugins/cpp/api.html +++ b/source/developers/plugins/cpp/api.html @@ -246,7 +246,7 @@

Example:

diff --git a/source/developers/plugins/csharp/api.html b/source/developers/plugins/csharp/api.html index db6f82ebe..88358edf3 100644 --- a/source/developers/plugins/csharp/api.html +++ b/source/developers/plugins/csharp/api.html @@ -265,7 +265,7 @@

Example:

diff --git a/source/developers/plugins/guidelines.html b/source/developers/plugins/guidelines.html index e86397e49..cf3e754b1 100644 --- a/source/developers/plugins/guidelines.html +++ b/source/developers/plugins/guidelines.html @@ -31,7 +31,7 @@

Adding custom bangs

Saving info in the Rainmeter.data file for later

You may have some data that needs to persist across multiple measures or skins and need a place to save it for later use. You may use the Rainmeter.data file to save this data if needed.

You can retrieve the full path of the Rainmeter.data file by calling the RmGetSettingsFile function.

-

Use a unique key so other plugins will not overwrite your data. Keeping track of all the measures that reference your plugin may be necessary in order to prevent other measures of your plugin to overwrite the data. To store data in the settings file, use WritePrivateProfileString. To retrieve data, use GetPrivateProfileString.

+

Use a unique key so other plugins will not overwrite your data. Keeping track of all the measures that reference your plugin may be necessary in order to prevent other measures of your plugin to overwrite the data. To store data in the settings file, use WritePrivateProfileString. To retrieve data, use GetPrivateProfileString.

Custom section variables

There may be times when you want to return a custom value from your plugin that is independent from the string or number value of the measure. In these cases, you can export a custom function that will be called via section variables. Skin authors will be able to call this custom function "on demand" in any option that supports section variables. DynamicVariables=1 will be required.

@@ -55,8 +55,8 @@

Multi-threading

C# Marshalling

-

When making C# plugins you may notice references to IntPtr's and Marshal functions. Since Rainmeter is written in C++, variables are encoded differently, but don't be intimidated by them.

-

An IntPtr is basically an integer that represents a pointer to some data, which is why you must deallocate data in finalize as well as recast it in every function. Also since strings are formatted differently in C++, you should pass your string to Marshal.StringToHGlobalUni before returning it in GetString or custom section variables.

+

When making C# plugins you may notice references to IntPtr's and Marshal functions. Since Rainmeter is written in C++, variables are encoded differently, but don't be intimidated by them.

+

An IntPtr is basically an integer that represents a pointer to some data, which is why you must deallocate data in finalize as well as recast it in every function. Also since strings are formatted differently in C++, you should pass your string to Marshal.StringToHGlobalUni before returning it in GetString or custom section variables.

Also the MarshalAs in ExecuteBang and SectionVariable examples just makes sure that you get a C# style string or string array out of the box.

What do the Disabled and Paused options do in a plugin?

diff --git a/source/history.html b/source/history.html index 8d4d7eeda..866b59879 100644 --- a/source/history.html +++ b/source/history.html @@ -262,7 +262,7 @@

July 27, 2021 - Revision 3508

July 27, 2021 - Revision 3507

July 22, 2021 - Revision 3506

@@ -2370,7 +2370,7 @@

June 24, 2010 (r440)

  • FIXED: Inconsistent numerical value via DynamicVariables. ( issue 130 )
  • FIXED: Problem with WebParser and "local files" with Cyrillic chars in the path. (issue 139)
  • The coded character set of the logfile is changed to UTF-8. (ccs=UTF-8) -
  • "MS Shell Dlg 2" is now used for the ABOUT dialog box. docs.microsoft.com
  • +
  • "MS Shell Dlg 2" is now used for the ABOUT dialog box. learn.microsoft.com
  • FIXED: Invalid error message box when DynamicVariables is 1 and FontSize is 0. (issue 126)
  • FIXED: Virtual Bytes usage for an x64 process with perfmon plugin does not display value greater than 4 GB ( issue 113 )
  • FIXED: A numeric value greater than 32bit can be now displayed when NumOfDecimals is 0 in Meter=STRING.
  • diff --git a/source/manual/installing-rainmeter/index.html b/source/manual/installing-rainmeter/index.html index 78bc2c550..6ca88e35d 100644 --- a/source/manual/installing-rainmeter/index.html +++ b/source/manual/installing-rainmeter/index.html @@ -105,7 +105,7 @@

    Examples

    WinGet Installation

    -

    You can install or upgrade to the latest version of Rainmeter from a cmd.exe or PowerShell command prompt window using the Windows Package Manager with the WinGet command.

    +

    You can install or upgrade to the latest version of Rainmeter from a cmd.exe or PowerShell command prompt window using the Windows Package Manager with the WinGet command.

    If the cmd.exe or PowerShell command prompt window is run "As Administrator", the installation will be entirely "silent". If not, Windows will display a UAC (User Account Control) confirmation dialog when executed.

    diff --git a/source/manual/measures/sysinfo.html b/source/manual/measures/sysinfo.html index 744fdbc3a..e30d828d8 100644 --- a/source/manual/measures/sysinfo.html +++ b/source/manual/measures/sysinfo.html @@ -59,7 +59,7 @@

    Network values

  • DOMAIN_WORKGROUP : [String] The computer's network domain or workgroup name.
  • DNS_SERVER : [String] The computer's network primary DNS server IP address.
  • ADAPTER_DESCRIPTION : [String] The description (name) of the network adapter specified by SysInfoData.
  • -
  • ADAPTER_TYPE : [String and Number] The type of network adapter specified by SysInfoData.

    The string value will be one of Ethernet, Wireless or Other. The number value will be one of 6 (Ethernet), 71 (Wireless), or some other number in the range 0-280 (Other). The meaning of numeric codes other than 6 and 71 can be found at: docs.microsoft.com Adapter Info.

  • +
  • ADAPTER_TYPE : [String and Number] The type of network adapter specified by SysInfoData.

    The string value will be one of Ethernet, Wireless or Other. The number value will be one of 6 (Ethernet), 71 (Wireless), or some other number in the range 0-280 (Other). The meaning of numeric codes other than 6 and 71 can be found at: learn.microsoft.com Adapter Info.

  • ADAPTER_ALIAS : [String] The network interface connected to by the network adapter specified by SysInfoData. Examples are Ethernet 1 or WiFi 3.
  • ADAPTER_GUID : [String] The GUID of the network adapter specified by SysInfoData.
  • ADAPTER_STATE : [String and Number] Gets the "media connected state" of the network adapter specified by SysInfoData. This works for physical and non-physical adapters. The number value will return 1 for connected, and -1 for disconnected. The string value will return Connected or Disconnected. Any other state returns 0 and Unknown.
  • diff --git a/source/manual/measures/time.html b/source/manual/measures/time.html index e4fb72634..39f27c2c8 100644 --- a/source/manual/measures/time.html +++ b/source/manual/measures/time.html @@ -23,7 +23,7 @@

    Options

    Tuesday, January 27, 2015 3:22:30 PM -

    If Format is not defined, the string value returned is in the default format %H:%M:%S, however the number value will be a Windows timestamp. If Format is defined, the number value will be the value defined by the format, or zero if the format does not define a numeric value.

    +

    If Format is not defined, the string value returned is in the default format %H:%M:%S, however the number value will be a Windows timestamp. If Format is defined, the number value will be the value defined by the format, or zero if the format does not define a numeric value.

    Note: If a Format option is defined, the Windows timestamp value of the measure can still be retrieved and used with the [MeasureName:Timestamp] section variable measure modifier.

    @@ -36,7 +36,7 @@

    Options

    A numeric Windows timestamp.

    -

    If TimeStamp is a numeric Windows timestamp or a formula defining a Windows timestamp, then this number, in one-second increments since January 1, 1601, will be used as the basis for measuring the date and time.

    +

    If TimeStamp is a numeric Windows timestamp or a formula defining a Windows timestamp, then this number, in one-second increments since January 1, 1601, will be used as the basis for measuring the date and time.

    Daylight Saving Time codes

    @@ -109,7 +109,7 @@

    A formatted date and time string.

    TimeStampFormat=%A, %d. %b %Y %H:%M:%S
    TimeStampLocale=de-DE

    -

    The values for this option can be found at [MS-LCID]: Windows Language Code Identifier (LCID) Reference. The values in the columns "Culture Name" or "Language Name Abbreviation" or "Language" can be used. Be sure to select your Windows version from the pull-down on the top left to get the most accurate information.

    +

    The values for this option can be found at [MS-LCID]: Windows Language Code Identifier (LCID) Reference. The values in the columns "Culture Name" or "Language Name Abbreviation" or "Language" can be used. Be sure to select your Windows version from the pull-down on the top left to get the most accurate information.

    Hint: In addition, a combination of "Language", an "_" underscore, "Country" (from inside the parentheses in the "Locale" column) a "." dot and the value of the "ANSI Codepage" column can be used to be very specific.

    diff --git a/source/manual/measures/webparser.html b/source/manual/measures/webparser.html index 52cf362d4..3fd1ae2e9 100644 --- a/source/manual/measures/webparser.html +++ b/source/manual/measures/webparser.html @@ -198,7 +198,7 @@

    Options

    In addition, there are times when an external local file to be parsed with URL=file:// will be encoded in other than the ANSI (really ASCII plus "extended ASCII" specific to the locale of the computer) encoding used as the default in most Windows-based text editors. Primarily this will be in Unicode UFT-16 LE. In this case, the CodePage=1200 option must be used to tell WebParer how to interpret the resource being read.

    -

    Codepage definitions and more information can be found at Code Page Identifiers.

    +

    Codepage definitions and more information can be found at Code Page Identifiers.

    Additional general help with Unicode encoding in Rainmeter can be found at Unicode in Rainmeter.

    diff --git a/source/manual/plugins/audiolevel.html b/source/manual/plugins/audiolevel.html index 41b1391d4..fad480c3e 100644 --- a/source/manual/plugins/audiolevel.html +++ b/source/manual/plugins/audiolevel.html @@ -9,7 +9,7 @@

    This can be used to create a volume level VU Meter for defined channels, or optionally can filter the audio stream into distinct frequency bands to create a Spectrum Analyzer.

    -

    The plugin monitors the amplitude of the post-mixer signal at a Windows audio endpoint. (i.e. sound card speaker output, USB audio interface, headphone port, microphone input) It does this by creating a WASAPI capture client in loopback mode. The capture client streams audio data to the plugin where it can be filtered and measured. The resulting volume level is returned by the plugin for use in Rainmeter measures and meters.

    +

    The plugin monitors the amplitude of the post-mixer signal at a Windows audio endpoint. (i.e. sound card speaker output, USB audio interface, headphone port, microphone input) It does this by creating a WASAPI capture client in loopback mode. The capture client streams audio data to the plugin where it can be filtered and measured. The resulting volume level is returned by the plugin for use in Rainmeter measures and meters.