roguetrip wrote: ↑March 11th, 2019, 5:56 pmI am converting my skin to use msi afterburner for some measures. When using the RAM Usage to see my used system ram it shows my ram as 5.1 k instead of 5.1 GB. Is this a bug or a calc like issue?
I am using MSI AB, and it will output the memory used in
megabytes - always. So, if you're using 50 MB, it will output 50, not 50x1024x1024 as a number value. My guess is that somewhere in your skin you have
AutoScale=1k, so when MSI AB passes 5100 (MB value, thus 5.1 GB) to Rainmeter, the value is further divided by 1024 and ends up being 5.1 (with " k" being appended to the number, since
AutoScale=1k). My advice would be to replace the
AutoScale=1k that you probably have in your skin with
Scale=1024 (that does the same division, but it doesn't add the " k" suffix to the number) and then manually append "GB" to the value from the meter displaying the whole thing. For example, in your meter you would have:
Code: Select all
MeasureName=some measure that gets the memory used value from MSI AB
AutoScale=1k
Text="%1B"
This should be modified to something like:
Code: Select all
MeasureName=some measure that gets the memory used value from MSI AB
Scale=1024
Text="%1 GB"
You can learn more about these scale options (and other options) applied to the String meters
here (just scroll to the scale options). One more thing, Rainmeter already has some measures that get the memory values - take a look
here. I prefer to use those in my skins, and keep MSI AB for things I can't get with Rainmeter another way (like GPU stuff, the temperatures for the CPU or GPU, etc).
roguetrip wrote: ↑March 11th, 2019, 5:56 pmNext. I like to use mouseupaction to open msiafterburner but just linking to the .exe file will bring up a uac prompt before reopening the program. Is the a command if the program is running to show and hide the program?
Disable UAC from Windows. I know it's not recommended and blah blah blah, but if you know what you're doing and are protected by an antivirus+firewall+some_adblocker, it isn't that dangerous. Bottom line, this isn't a Rainmeter issue, IMHO.