--- In [email protected], "quantiworks" <[EMAIL PROTECTED]> wrote:
>
> hi to all :)
>
> i've set a up a timer to lock my workstation every half hour to rest
> my eyes a bit. problem is, after the reset command is reached
> (*Shutdown LockWorkStation noconfirm)
> the timer keeps running, so sometimes when i login again i get the
> lock very early, not the 30mts i've specified.
>
> what i'd like is:
> 30mts lock > pause timer > login again > restart timer
>
> how can i achieve that?
Here is an indirect way that might work.
The idea is to check once a minute to see if the workstation is
locked, and if so reset the timer to 30 minutes
Assuming your lockworkstation timer is timer a, you have to have a
second timer that resets once per minute and executes the command
if (win.getdesktopname == "")
timer.set("+a 0 30 0")
If this does not work, try changing the command on the 1 minute timer to
win.debug(win.getdesktopname)
and see what value the desktop name is after you lock andn then unlock
the workstation (wait a minute or two with lock).