[Inactivity] - [Activity]

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Guest

[Inactivity] - [Activity]

Post by Guest »

Question:

What exactly that this two paragraph do in the PWB environment?

Thnx.

[Browser]
ShowInactivityTimer=True
ShowActivityTimer=True

[Inactivity]
InactivityTimer=False
InactivitySeconds=1200
InactivityMessageTitle=Warning
InactivityMessageFile=Inactivity.txt
InactivityAction=Home
InactivitySoundFile=
InactivityStartOnOpen=False
InactivityShowDialog=True

[Activity]
ActivityTimer=False
ActivitySeconds=1200
ActivityMessageTitle=Warning
ActivityMessageFile=Activity.txt
ActivityWarnAt=120
ActivityWarnTitle=Warning
ActivityWarnMessageFile=ActivityWarn.txt
ActivityAction=Exit
ActivitySoundFile=
ActivityStartOnOpen=False

spragers
Benefactor
Benefactor
Posts: 153
Joined: Fri Dec 27, 2002 9:11 am
Contact:

Post by spragers »

The activity timer sets the maximum length of time that PWB can run. If you want people to only be on for one hour, set the activity time limit for one hour, and choose an action for PWB to take when that hour is up. The inactivity timer is just the opposite - if nobody moves the mouse or presses a key for the given time limit, PWB will take whatever action you specify.

I use the inactivity timer along with a custom script, so that if someone leaves the computer, after 5 minutes of no activity the computer will automatically log itself back in.

Hope that helps!

Nseawater

Post by Nseawater »

spragers wrote:I use the inactivity timer along with a custom script, so that if someone leaves the computer, after 5 minutes of no activity the computer will automatically log itself back in.

Hope that helps!
Yes, it does help.... So, how did you write your script, in a RTF? Is it possible for me to get a copy of that script?

Saying thnx ahead... :)

nseawater

Post by nseawater »

What I'm really looking for, is to be able to call a script and the script in turn will close the PWB browser and it turn the browser will re-launch itself - due to the "RUNAPP" from Microsoft's ZAK utility. What is the command to close all running application that I can put in a script?

Thnx again.

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Set the inactivity timer action to "exit". This will tell PWB to exit when the time is up. Then use shutdown script to run your batch file to restart PWB.

[Files]
...
ShutdownScript=C:\Path to Batch File\YourBatch.bat
...

Or you can set the Restart On Close option in PWB and have PWB restart itself after it exits.

[Security]
...
RestartOnClose=True
...

--Scott

jovin
Observer
Observer
Posts: 7
Joined: Tue Apr 06, 2004 10:22 am

nseawater

Post by jovin »

Okay... I'm off to a good start.

But, what is the command line to force a user logoff and are there any switches to this command? Also, how do I make sure that once the user account has logged off - how do configure the system to log back in as the same user - do I do it from the Registry like the "AutoAdminLogon"?

Thnx.

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

You can set the Inactivity action to Logoff. This will log the user off the computer when the inactivity timer runs out.

<from the PWBv2.rtf file>
InactivityAction=Home
--Action to take when idle time is reached.
----Home = browser to home page.
----Exit = Browser exits.
----Logoff = user is logged off computer.
----Warn = The dialog was just a warning, PWB will continue
----Restart = Restarts PWB.
----Reboot = Computer will be rebooted.

Yes, then you could use a "AutoAdminLogon" type functionality. There is a Autologon utility on the TSS Download page.

--Scott

spragers
Benefactor
Benefactor
Posts: 153
Joined: Fri Dec 27, 2002 9:11 am
Contact:

Post by spragers »

Hi,

I'm not sure about closing all apps, but you can use the PWBSTOP utility that should be on the download page. It's a simple executable file that closes all running instances of PWB version 2.

I wrote a VB script, and put a shortcut to the script in the Shell Bar in PWB, and called it "Quit". I don't use this anymore (seemed to be too confusing for people...?), basically when someone was sure they were done, they'd click on the "quit" button, and it would run the PWBSTOP program, which would close all instances of PWB.

jovin
Observer
Observer
Posts: 7
Joined: Tue Apr 06, 2004 10:22 am

Post by jovin »

Thnx for all the help everyone - I finally got it to work.

jovin
Observer
Observer
Posts: 7
Joined: Tue Apr 06, 2004 10:22 am

Post by jovin »

Opps, I spoke too soon. I got it to work at one point but it hasn't worked again after I played around with it.

[Browser]
ShowActivityTimer=True
ShowStatusBarTime=True

[Inactivity]
InactivityTimer=True
InactivitySeconds=1200
InactivityMessageTitle=Warning
InactivityMessageFile=C:\Program Files\TeamSoftware Solutions\Public Web Browser v2\Text_Errors\LOGOFFMSG.RTF
InactivityAction=C:\WinNT\System32\Logoff.exe
InactivitySoundFile=
InactivityStartOnOpen=False
InactivityShowDialog=True

[Activity]
ActivityTimer=False
ActivitySeconds=1200
ActivityMessageTitle=Warning
ActivityMessageFile=Activity.txt
ActivityWarnTitle=Warning
ActivityWarnMessageFile=ActivityWarn.txt
ActivityAction=Exit
ActivitySoundFile=
ActivityStartOnOpen=False

I placed the Logoff.exe in the system32 directory and I tested it and it works. The Logoff.exe is the zip file that I downloaded in the download from the PWB web site. I've also modified the registry - once the system logs off, it automatically logs back on a the regular user - this too I've tested and works. I just couldn't get the Inactivity time to log out.

What am I missing.

Thnx.

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

This inactivity action needs to be set to one of the inactivity actions.

<from the PWBv2.rtf file>
InactivityAction=Home
--Action to take when idle time is reached.
----Home = browser to home page.
----Exit = Browser exits.
----Logoff = user is logged off computer.
----Warn = The dialog was just a warning, PWB will continue
----Restart = Restarts PWB.
----Reboot = Computer will be rebooted.

[Inactivity]
...
InactivityAction=Logoff
...

The inactivity action does not run a batch file but performs an action based on the inactivity action keyword. If you want to use a batch file, then set the inactivity action to exit and use the shutdown script to run the batch file.
--Scott

jovin
Observer
Observer
Posts: 7
Joined: Tue Apr 06, 2004 10:22 am

Post by jovin »

Scott wrote:.

[Inactivity]
...
InactivityAction=Logoff
...

The inactivity action does not run a batch file but performs an action based on the inactivity action keyword. If you want to use a batch file, then set the inactivity action to exit and use the shutdown script to run the batch file.
--Scott
I tried that

[Inactivity]
InactivityTimer=True
InactivitySeconds=120
InactivityMessageTitle=Warning
InactivityMessageFile=C:\Program Files\TeamSoftware Solutions\Public Web Browser v2\Text_Errors\LOGOFFMSG.RTF
InactivityAction=Logoff


I set the time for 2 minutes to test and all it does is pass the 2 minute mark and nothing..

jovin
Observer
Observer
Posts: 7
Joined: Tue Apr 06, 2004 10:22 am

Post by jovin »

:oops:

Never mind on the activity - got it to work.

Thnx. Scott..

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Other people may have the same trouble, what did you do to get it work?

--Scott

jovin
Observer
Observer
Posts: 7
Joined: Tue Apr 06, 2004 10:22 am

Post by jovin »

It was a user mistake for misinterpreting the "Inactivity" part.

When PWB launches - the Inactivity timer, countdown, doesn't kick in until some one has used the browser by going to a different web site. I launched PWB and didn't even bother browsing other websites, I just started counting the clock.

Silly me.

Post Reply