Sign in to follow this  
Followers 0
xo0p

milliseconds or ?

3 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


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
Sign in to follow this  
Followers 0