RestartonClose=true
Moderators: Tyler, Scott, PWB v2 Moderator
RestartonClose=true
I have this set in the .ini. I have a shellbar button that essentially presses ALT-F4. That closes PWB, but it doesn't restart.
I am using 2.11, Windows XP and IE 8
Thanks.
Jane
I am using 2.11, Windows XP and IE 8
Thanks.
Jane
Re: RestartonClose=true
I was just taking another look at this and I believe that maybe it did restart, but is just 'invisible'. If I try to start it again from the shortcut nothing seems to happen. In the TaskManager however, is shows pwb.exe as a running process.
Re: RestartonClose=true
Is there a PWB icon on the Taskbar?
If you hit Alt-F4 does PWB close and re-open?
--Scott
If you hit Alt-F4 does PWB close and re-open?
--Scott
Re: RestartonClose=true
I am running in kiosk mode so before it closes, no, there is no taskbar. After I close it, there is no PWB icon on the taskbar.
Re: RestartonClose=true
If you hit Alt-F4 on the keyboard does PWB close and re-open?
--Scott
--Scott
Re: RestartonClose=true
No, ALT-F4 doesn't work either.
I copied the whole folder from one that was working in another building to this computer and I still have the same result on this one.
The .ini file is read from a network share. I am thinking that maybe that is the problem except it reads it fine the first time it opens. It just doesn't re-open.
Frustrated.
I copied the whole folder from one that was working in another building to this computer and I still have the same result on this one.
The .ini file is read from a network share. I am thinking that maybe that is the problem except it reads it fine the first time it opens. It just doesn't re-open.
Frustrated.
Re: RestartonClose=true
In the .ini it says "RestartOnClose=TRUE". Is ALT-F4 in this case the same as Close?
But that would explain why it works in one building and not another/
But that would explain why it works in one building and not another/
Re: RestartonClose=true
Could it be a speed issue? The one that doesn't work is a much newer computer and maybe needs a delay in the script. Also the one that works is running IE7 and this one IE8
Re: RestartonClose=true
Alt-F4 is the Windows keyboard shortcut to close an application. When you have RestartOnClose=True, closing PWB with Alt-F4 will re-open it.
The problem you have been describing is with a button on the PWB Shellbar. If the Shellbar button is running an application that kills the PWB process instead of closing PWB normally, the RestartOnClose will not have a chance to run.
This is why using the Alt-F4 test will tess us something.
--Scott
The problem you have been describing is with a button on the PWB Shellbar. If the Shellbar button is running an application that kills the PWB process instead of closing PWB normally, the RestartOnClose will not have a chance to run.
This is why using the Alt-F4 test will tess us something.
--Scott
Re: RestartonClose=true
OK. I answered my own question. The lines in the script
press Alt-4
Delay (4)
I did have it only delay (2)
press Alt-4
Delay (4)
I did have it only delay (2)
Re: RestartonClose=true
This is sure frustrating. Now it works sometimes. I have increased the delay to 6
Re: RestartonClose=true
What is this script you are using?
--Scott
--Scott
Re: RestartonClose=true
Created using Winbatch.
;Created by J. Frasier
;6/1/05 for ExpressCats (modified 11/30/2012)
;to close PWB. The .ini has RestartonClose=TRUE
;A shortcut to this will be on the shellbar
;what to do if user terminates batch, allow Windows to exit with no warning
IntControl (12,1,0,0,0)
;sets winbatch icon to hidden
IntControl(1002,0,0,0,0)
;keystrokes to close PWB
SendKey("!{F4}")
Timedelay (6)
This is the code and then Winbatch compiles it to an .exe
;Created by J. Frasier
;6/1/05 for ExpressCats (modified 11/30/2012)
;to close PWB. The .ini has RestartonClose=TRUE
;A shortcut to this will be on the shellbar
;what to do if user terminates batch, allow Windows to exit with no warning
IntControl (12,1,0,0,0)
;sets winbatch icon to hidden
IntControl(1002,0,0,0,0)
;keystrokes to close PWB
SendKey("!{F4}")
Timedelay (6)
This is the code and then Winbatch compiles it to an .exe
Re: RestartonClose=true
If you just need a Shellbar button to close PWB you can use the PWBStop application from the Downloads page.
--Scott
--Scott
Re: RestartonClose=true
I'll try that