Thanks for this awesome plugin!

Code: Select all
[MS_RunCommand_CPUCoresBits]
Measure=Plugin
Plugin=Plugins\RunCommand.dll
Parameter=wmic CPU where DeviceID='CPU0' get DataWidth,NumberOfCores
State=Hide
OutputType=ANSI
IfCondition=1
IfTrueAction=[!CommandMeasure MS_RunCommand_CPUCoresBits "Run"]
UpdateDivider=-1
RegExpSubstitute=1
Substitute="\S+\s+\S+\s+(\S+)\s+(\S+)\s+":"\2 x \1b"
It certainly works fine for me, and as far as I know everyone else, on Windows 8.1 x64, so I'm sure it is something related to your VirtualBox environment. Do you get the same thing if you run Rainmeter "As administrator"?Yincognito wrote:I just tried this plugin in Windows 8.1 x64 (VirtualBox VM) and the log gives error 126 : "Unable to load \RunCommand.dll". The spelling is correct as far as I can tell, the plugin is the correct x64 version and I tried even putting the .dll file in the main Rainmeter plugins' folder (along with the proper modifications in the code) to no effect. Also the plugin appears to be loaded just fine in the About/Plugins tab. There is a "!CommandMeasure not supported" error too in the log, but I suspect it's related to the fact that the plugin "couldn't be loaded".
Thing is, the same code works fine on Windows 7 x64 (no VM) and on Windows XP SP3 x86 (VM):
Anyone happens to know why?Code: Select all
[MS_RunCommand_CPUCoresBits] Measure=Plugin Plugin=Plugins\RunCommand.dll Parameter=wmic CPU where DeviceID='CPU0' get DataWidth,NumberOfCores State=Hide OutputType=ANSI IfCondition=1 IfTrueAction=[!CommandMeasure MS_RunCommand_CPUCoresBits "Run"] UpdateDivider=-1 RegExpSubstitute=1 Substitute="\S+\s+\S+\s+(\S+)\s+(\S+)\s+":"\2 x \1b"
Use the sysinternals utility Process Monitor http://technet.microsoft.com/en-us/sysinternals/bb896645 from Microsoft to trace all file access while your dll is trying to load. With this utility, you will see everything that that dll is trying to pull in and usually the problem can be determined from there.
Yes, well, that's the logical thing to say, I agree, but how can this be when the same code, the same files, the same VM settings work under Windows XP VM?I'm sure it is something related to your VirtualBox environment
Code: Select all
Date & Time: 5/12/2015 4:12:54 PM
Event Class: File System
Operation: CreateFileMapping
Result: FILE LOCKED WITH ONLY READERS
Path: C:\Program Files\Rainmeter\Plugins\RunCommand.dll
TID: 1396
Duration: 0.0000027
SyncType: SyncTypeCreateSection
PageProtection:
Code: Select all
Date & Time: 5/12/2015 4:12:54 PM
Event Class: File System
Operation: CreateFileMapping
Result: FILE LOCKED WITH ONLY READERS
Path: C:\Users\Zedd\AppData\Roaming\Rainmeter\Plugins\RunCommand.dll
TID: 1396
Duration: 0.0000036
SyncType: SyncTypeCreateSection
PageProtection:
Yeah, but you are not getting any crash or runtime error, so that is a huge step forward.Yincognito wrote:Yeah, it does...except the skin returns "Windows is ------". Which means that it doesn't, of course![]()
I did all that you asked. Deleted, purged, everything. Not only in the VMs (both XP and 8.1), but also on my native Win 7 x64 (aka the "real machine").
This is starting to become really funny. I bet Sherlock himself would be baffled by this...