Jump to content

Script still active after standby / wakeup


Recommended Posts

Hi,

i wrote a script to activate standby mode using api function call shutdown. After this statement the Script should write an entry to a logfile.

The problem: The shutdown command is the last statement of the script which is executed before standby. The output command ist executed after wakeup. The script stays in memory during standby.

Is it possible to schedule the shutdown command to ensure that the script has finished before standby?

Link to post
Share on other sites

Well, i tested this behavior with this script:

Shutdown (32)

WriteLog ("Test")

The function WriteLog writes Text to a logfile. I only used this for testing purposes to check if script is terminated before standby.

The main problem is: Sometimes the Shutdown function is executed again after wakeup, even if it's the last line of code in the script. In this case PC goes to standby immediately after waking up. It seems that script remains in memory with a wrong "execution pointer".

Link to post
Share on other sites

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...