Jump to content

Recommended Posts

  • Developers
Posted (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 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.
  :)

Posted

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)

 

 

Posted

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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...