[Inactivity] - [Activity]
Moderators: Tyler, Scott, PWB v2 Moderator
[Inactivity] - [Activity]
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
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
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!
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?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!
Saying thnx ahead...
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.
Thnx again.
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
[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
nseawater
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.
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.
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
<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
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.
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.
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.
[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.
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
<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
I tried thatScott 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
[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..
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.
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.