Using Winbase.h to Disable Screensaver
Posted: Tue Sep 21, 2021 1:44 pm
I have used "ctypes" in Python to implement a screensaver disable in my Python programs, based on the SetThreadExecutionState as described here:
https://docs.microsoft.com/en-us/window ... utionstate
https://eddiejackson.net/wp/?p=23435
But now I need to implement the same thing in a Livecode app and I'm struggling to understand how to call this function. Seems like it would be a simple thing, but most of the information I have found is how to make your own externals and use them in Livecode. But I just need to call this existing Windows function with arguments. Any help is greatly appreciated.
https://docs.microsoft.com/en-us/window ... utionstate
https://eddiejackson.net/wp/?p=23435
But now I need to implement the same thing in a Livecode app and I'm struggling to understand how to call this function. Seems like it would be a simple thing, but most of the information I have found is how to make your own externals and use them in Livecode. But I just need to call this existing Windows function with arguments. Any help is greatly appreciated.