Hello Alan,
you wrote...
> Attach the program launching commands to the command you use
> to start your dialup connection. Attach the program closing
> commands to the command you use to disconnect. Either use
> the More commands box or make two scripts:
There is one problem with this approach, It won't work if some other
program hangs up connection.
> To do it with the Monitor command list...
> Command: if(modem)do
> Item 6 : else
> Item 7 : window close =kerio
> Item 8 : window close =thebat
> Item 9 : endif
With this approach he can use The Bat! only while online, although this
can be workarounded with flags or variables.
;-----Script(Not Tested)-----
Static myRunOnlyOnce
If (modem) Do
If (myRunOnlyOnce != 1) Do
myRunOnlyOnce = 1
If (AnyWindow("=kerio") == 0)
c:\pathto\kerio\kerio.exe
If (AnyWindow("=thebat") == 0)
c:\pathto\thebat.exe
EndIf
Else
If (myRunOnlyOnce) Do
myRunOnlyOnce = ""
If (AnyWindow("=kerio"))
Win.Close("=kerio")
If (AnyWindow("=thebat"))
Win.Close("=thebat")
EndIf
EndIf
;-----Script(Not Tested)-----
> Using a timer:
> Problem: every time you click OK or Apply in pproconf while
> you are connected, the apps will be closed and reopened.
I can't confirm this.
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/