FATIHTALI Posted August 26, 2009 Share Posted August 26, 2009 Hello. I am creating a small test program. Program will test something on computers. We want to know How long time process run. Or how many second program worked. Anyone can help me for it. Thanks. Fatih Startup Agent It is my small Startup Agent. You can install programs on startup Domain pc without Admin rights. Link to comment Share on other sites More sharing options...
Andreik Posted August 26, 2009 Share Posted August 26, 2009 I wrote a simple example, just start notepad and then close after some time and this script will tell you how much time was active: $PROCESS_NAME = InputBox("Chrono","Type here your process name","notepad.exe") $INIT = TimerInit() While ProcessExists($PROCESS_NAME) Sleep(15) WEnd MsgBox(0,"Time",$PROCESS_NAME & " was active: " & Round((TimerDiff($INIT)/1000),2) & " s") When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now