myspacee Posted January 4, 2021 Share Posted January 4, 2021 Hello, I have a PC in my living room, it is used as a media hub on my home TV. The computer is hidden in a 'closet' .... it happens to forget the computer turned on after using it and the wardrobe door is closed. In these cases the danger is to leave it on and risk damaging it. Is it possible to intercept the temperatures of the computer (CPU, motherboard) and turn it off at a certain heat threshold? m. Link to comment Share on other sites More sharing options...
Nine Posted January 4, 2021 Share Posted January 4, 2021 Here what I could find : #RequireAdmin Opt("MustDeclareVars", 1) Example() Func Example() Local $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\wmi") Local $colItems = $objWMIService.ExecQuery('SELECT * FROM MSAcpi_ThermalZoneTemperature') If Not IsObj($colItems) Then Exit MsgBox(0, "", "Not an object") If Not $colItems.count Then Exit MsgBox(0, "", "Not found") For $oItem In $colItems ConsoleWrite ("InstanceName = " & $oItem.InstanceName & @TAB & _ "CriticalTripPoint = " & $oItem.CriticalTripPoint/10-273.15 & " C" & @TAB & _ "CurrentTemperature = " & $oItem.CurrentTemperature/10-273.15 & " C" & @CRLF) Next EndFunc “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
myspacee Posted January 4, 2021 Author Share Posted January 4, 2021 (edited) Thank you Nine, it seems that #RequireAdmin inhibits ConsoleWrite and exit my cicles (for, while) I lowered my WIN10 UAC to bottom, is this related ? m. Edited January 4, 2021 by myspacee Link to comment Share on other sites More sharing options...
Nine Posted January 4, 2021 Share Posted January 4, 2021 (edited) 14 hours ago, myspacee said: it seems that #RequireAdmin inhibits ConsoleWrite You must have a really old version of autoIt...Make sure you got also full version of Scite... Edited January 5, 2021 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now