Issues related to third-party are not supported here, and to get help about that dll, you could connect to its publisher. Source code on page is in c# and I work in vb.net - tried converting it, but it has so many separate files/classes etc, it is very difficult to find what I need - hence asking on here in case any one had samples or ideas from using it in vb.net Yes I am running the app as admin - and it is listing all hardware items with sensors, it is just working out how to then get sensor details from that There is also a method to get the source code if you need it also on the same page. The docs for the dll state that most hardware sensors are not available unless running with Admin rights. TextBox3.AppendText(sensor.SensorType & " - " & sensor.Name & " - " & sensor.Value & vbCrLf)ĭid you run with Admin rights. TextBox3.AppendText("Data: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText("Power: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText("Factor: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText("Level: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText("Fan Control: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText("Flow: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText("Fan Speed: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText("Load: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText("Temperature: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText("Clock: " & sensor.Name & " - " & sensor.Value & vbCrLf) ![]() TextBox3.AppendText("Voltage: " & sensor.Name & " - " & sensor.Value & vbCrLf) TextBox3.AppendText(subhardware.Name & vbCrLf & vbCrLf)įor j = 0 To - 1 TextBox3.AppendText("Motherboard: " & hardware.Name & vbCrLf & vbCrLf)įor k = 0 To - 1ĭim subhardware = hardware.SubHardware(k) I had to add in the line subhardware.Update() and now it works fineĪmended code copied below for anyone else who may find it useful:- For i As Integer = 0 To cp.Hardware.Count() - 1 Have found out why Open Hardware Monitor wasn't showing fans and some other sensors Yea when you found it then please show it here? Info += " SuperIO: " & Trim(cp.Hardware(i).Name) & vbCrLfĬertainly that source code mentions fans, temps etc for motherboard so must be missing something = If cp.Hardware(i).HardwareType = HardwareType.SuperIO Then Info += " HDD: " & Trim(cp.Hardware(i).Name) & vbCrLf If cp.Hardware(i).HardwareType = HardwareType.HDD Then Info += " RAM: " & Trim(cp.Hardware(i).Name) & vbCrLf If cp.Hardware(i).HardwareType = HardwareType.RAM Then Info += " Video Card: " & Trim(cp.Hardware(i).Name) & vbCrLf If cp.Hardware(i).HardwareType = HardwareType.GpuNvidia Then Info += " Processor: " & Trim(cp.Hardware(i).Name) & vbCrLf If cp.Hardware(i).HardwareType = HardwareType.CPU Then ![]() Info += " Motherboard: " & Trim(cp.Hardware(i).Name) & vbCrLf If cp.Hardware(i).HardwareType = HardwareType.Mainboard Then Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Clickįor i As Integer = 0 To cp.Hardware.Count() - 1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Just wondered if anyone else had experience using the OpenHardwareMonitorLib.dll and getting information needed?īelow code will show me list of all hardware in my system which has sensors, but can't then see how to get the sensor results I have looked through the odd sample in c# I can find but having troubles implementing it So researched more and found which has a DLL you can use in your own apps Trying to add facility to my app to show things like CPU/Motherboard temperature / voltages / fan speeds etcįound that information retrieved from WMI is inaccurate and can't get half of what I need
0 Comments
Leave a Reply. |