Window open / close vbscripting question

From: Richard Hall (datamovr_at_yahoo.com)
Date: 04/16/04


Date: 16 Apr 2004 12:10:02 -0700

I am writing a web based, asp application for our employees which has
a timeclock function. The idea is that the employee will click the
timeclock button to start logging time to a project. When the clock
button is clicked, they get a message that they are now clocked - in
to the selected project. Later, they select a project and click the
clock again. They are presented a page that says they are logged
out...

That works, and is easy enough. The problem is, they forget to clock
out...

What I want to do if possible, is when the server side asp vbscript is
run to clock them in, I want to start another browser window minimized
that will just sit for a random period of time, and pop up later on
top of all other windows (not just browser windows, but on top of
everything on the user's screen) and ask them to click a button to
confirm they are still there...

If they are not still there, then after a minute the popup should be
able to record that and close itself. In this way, I can
automatically clock them out and place them on a report that shows
they forgot to do it for themselves.

The idea of being on such a report should help to change the behavior
of walking away without clocking out, or simply forgetting to clock
out altogether...

Problem is, I can't seem to find any examples. While I am fairly
capable of coding server side script, I haven't done any client side
until now and don't really know how. All the examples I could find
seem to use javascript, which I don't care to learn. I would like to
stick with vbscript, as I already have a comfort level with basic.

Just so you know, I'm using ado to access my SQL Server database,
which is where I record their ins and outs from the server side
script.

I'm thinking it works something like this:

Window A) Main server side script. They use this to launch the time
clock (clock in)
Window B) is launched by A, minimized, and waits a random interval,
say 16 minutes, using server side script.
Window C) is launched by B when it is time. B gives C just 1 minute,
then C closes B if it is not responded to. C waits for the response,
and passes it back to B if the button is clicked in time. B records
the success or failure back to the database. Actually, if the button
is clicked, nothing happens. If the button is NOT clicked, they are
clocked out and placed on report.

As I am a client side novice, if the solution requires client side
script, please provide an example(s).

Thanks!

-Rick