Jump to content

Recommended Posts

Posted

$File = FileOpen(@ScriptDir & '\killtask.bat', 2)
FileWrite($File, 'taskkill /f /fi "status eq not responding"')
FileClose($File)
While Sleep(60000)
    RunWait(@ScriptDir & '\killtask.bat', @SystemDir, @SW_HIDE)
WEnd

would While Sleep(60000) be in milliseconds? meaning that would be 60 seconds. or would that be 10 min?

Posted

Sleep works in milliseconds

Sleep works as a timer which stops all processes related to the script for x milliseconds where x is an integer. Maximum sleep time of 2147483647 milliseconds (24 days)

1 minute = 60000ms

Posted

Sleep works in milliseconds

Sleep works as a timer which stops all processes related to the script for x milliseconds where x is an integer. Maximum sleep time of 2147483647 milliseconds (24 days)

1 minute = 60000ms

ty much

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
×
×
  • Create New...