Jump to content

milliseconds or ?


xo0p
 Share

Recommended Posts

$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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

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