Reply to thread

Interesting post CyberSimian.


That wouldn't work for me though as that would shut down the computer on idle, no matter how it was switched on. The method I am using detects whether it was a wake timer or the power button that woke the computer. If it was the power button, it will not try to shut down. I will post the whole script when it is done.


Meanwhile a little progress on the principle of accessing functions within DLLs - as per this AHK test script:


DllCall ("C:\Program Files (x86)\Team Media Portal\MediaPortal TV Server\Hauppauge.dll\GetAudBitRate",  "double", Recording)

MsgBox %Recording%

MsgBox %ErrorLevel%


Now... unfortunately I cannot seem to find the function I want despite Edalex's helpful pointers above. Looking for IsAnyCardRecording in TVControl.dll generated a not found error code, which has baffled me for the time being.


Top Bottom