debbiejames Posted March 29, 2023 Posted March 29, 2023 and i am sure that "nvcpl.dll" files is already exist in c:\windows\system32 folder ...
Developers Jos Posted March 29, 2023 Developers Posted March 29, 2023 (edited) Please post the full script which runs and shows the error. .. and DO NOT report your own posts!!! That button is ONLY used when there is something wrong with a post! Edited March 29, 2023 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
debbiejames Posted March 29, 2023 Posted March 29, 2023 it`s my full script code below .. and I got message box " ERROR Code is: 1" The last line $result[2] is also fail ... becaue there are no feedback result array due to error code 1 Dim $pdwCoreTemp Dim $pdwAmbientTemp Dim $pdwUpperLimit $nWindowsMonitorNumber = 0 $dll = DllOpen("nvcpl.dll") $result = DllCall($dll,"int", "NvCplGetThermalSettings", "int",$nWindowsMonitorNumber, "long_ptr", $pdwCoreTemp, "long_ptr", $pdwAmbientTemp, "long_ptr", $pdwUpperLimit) If @error then msgbox(0,"ERROR","ERROR Code is " & @error) MsgBox(4096, "Test", $result[2]) DllClose($dll)
Werty Posted March 29, 2023 Posted March 29, 2023 Try this... $result = DllCall($dll,"int:cdecl", "NvCplGetThermalSettings", "int",$nWindowsMonitorNumber, "long*", $pdwCoreTemp, "long*", $pdwAmbientTemp, "long*", $pdwUpperLimit) Some guy's script + some other guy's script = my script!
Nine Posted March 29, 2023 Posted March 29, 2023 I got rid of @error by using x64 -- but this API is not working on my comp, at least I did not find a way... “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
debbiejames Posted March 30, 2023 Posted March 30, 2023 Thanks for help !Werty But @error code still show 1 I found below 2014 messages on the nVdia forum. It seems that after 2014, the NV chip information can be obtained through nvapi64.dll.. but usgin C++ ? I don’t know how to apply it on AUTOIT.. Can someone please help to make it work on AUTOIT? Thanks!! https://forums.developer.nvidia.com/t/nvcplgetthermalsettings-call-to-nvcpl-dll-returns-false-c/34748
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