I'm working on a script that queries the modified date of a specified file and then queries the the current time. That info is then fed into another proc that finds the difference in time between the two files in seconds and converts it to days, hours, mins, secs. I have that all working nicely.
Basically, I want to show a counter of the "elapsed time" since the file was modified in a window I have created. So I need to take the existing time difference and add to it each sec that passes by while the window is open. Whats the best way to update the Window every second that passes by? I was thinking of using the timer, but it isn't queryable. Ive also been thinking about an incremental while loop with a 1 sec pause built in. I've never used a scriptjob before, but that also seems like something i should investigate. Love to hear any suggestions anyone might have. Thanks!!
-DD
Edit
How bout this, how do I execute a procedure every second? It takes .04 seconds to execute my time elasped procedure, so I could just have it edit a text control in my window if i could get it to execute every second. I've taken a look at the scriptjob events, but I don't really see any event that suits my needs. I really only need it to execute while my created window is open.