A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Ring a bell when openvpn says "Initialiazation sequence completed"



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old July 1st 17, 01:01 PM posted to alt.comp.os.windows-10
Roy Tremblay
external usenet poster
 
Posts: 169
Default Ring a bell when openvpn says "Initialiazation sequence completed"

How can I ring a bell when openvpn says
"Initialization sequence completed"?
https://s7.postimg.org/wmho9m0cr/vpn1.gif

Is there a way to use Windows "event triggers" to automatically ring a bell
when the VPN network is established?
https://stackoverflow.com/questions/...-event-trigger
https://blogs.technet.microsoft.com/...in-windows-10/
Ads
  #2  
Old July 1st 17, 04:10 PM posted to alt.comp.os.windows-10
Tim[_8_]
external usenet poster
 
Posts: 141
Default Ring a bell when openvpn says "Initialiazation sequence completed"

Roy Tremblay wrote in
news
How can I ring a bell when openvpn says
"Initialization sequence completed"?
https://s7.postimg.org/wmho9m0cr/vpn1.gif

Is there a way to use Windows "event triggers" to automatically ring a
bell when the VPN network is established?

OpenVPN should have a place in the settings to allow you to specify what
sound to make when certain events occur. You should be able to specify any
MP3 file for the sound desired.

I use VyperVPN, and for the connect and disconnect events I stole the
'Welcome' and 'Goodbye' sounds from AOL.
  #3  
Old July 1st 17, 04:35 PM posted to alt.comp.os.windows-10
FeedbackPlease
external usenet poster
 
Posts: 1
Default OT VPN

Since you are users, please help me understand.

What is the advantage of VPN (say Vyprvpn) over a Tor Browser ?

Does VyprVPN encrypt from the laptop immediately before hitting the WIFi
transmitter in the laptop ?
If so, then there is some installed software on the laptop that encrypts
as part of VyprVPN or an add on or ?

How much slower overall is using a VPN.

Thank you !

  #4  
Old July 1st 17, 10:00 PM posted to alt.comp.os.windows-10
Roy Tremblay
external usenet poster
 
Posts: 169
Default Ring a bell when openvpn says "Initialiazation sequence completed"

Tim actually wrote:

OpenVPN should have a place in the settings to allow you to specify what
sound to make when certain events occur. You should be able to specify any
MP3 file for the sound desired.

I use VyperVPN, and for the connect and disconnect events I stole the
'Welcome' and 'Goodbye' sounds from AOL.


Thanks for the suggestion that there must be a command inside of the
OpenVPN options which can ring a bell.

I found these two promising OpenVPN Daemon options.
--up script (a batch file)
--route-up (a batch file)

Which may need this option if a delay is required.
--route-delay to delay for some time if required (a batch file)

So now I think all I need is a batch file that rings a bell to test it out.
  #5  
Old July 1st 17, 10:28 PM posted to alt.comp.os.windows-10
Roy Tremblay
external usenet poster
 
Posts: 169
Default Ring a bell when openvpn says "Initialiazation sequence completed"

Roy Tremblay actually wrote:

Thanks for the suggestion that there must be a command inside of the
OpenVPN options which can ring a bell.

I found these two promising OpenVPN Daemon options.
--up script (a batch file)
--route-up (a batch file)

Which may need this option if a delay is required.
--route-delay to delay for some time if required (a batch file)

So now I think all I need is a batch file that rings a bell to test it out.


I found the openvpn documentation for those commands here.
https://community.openvpn.net/openvp...envpn24ManPage

Apparently the specified "--up" script is called after the TUN/TAP device
is opened.
http://i.cubeupload.com/dqsc7k.gif

The "--route-up" script seems to run "after connection authentication".
http://i.cubeupload.com/5d4bwx.gif

The "--route-up" is subject to the "--route-delay" which is a bit more
complex because it also seems to affect added routes.
http://i.cubeupload.com/IYcWYA.gif

It seems to me the best one to test out first will be the "--route-up"
which runs pretty late in the game.

Now I need to find a windows script to ring a bell.
  #6  
Old July 1st 17, 11:11 PM posted to alt.comp.os.windows-10
Roy Tremblay
external usenet poster
 
Posts: 169
Default Ring a bell when openvpn says "Initialiazation sequence completed"

Roy Tremblay actually wrote:

Now I need to find a windows script to ring a bell.


I found a good Windows 10 device-connect sound by going to the Control
Panel and then to Sound and then to Sounds Windows Device Connect and
then to Test.

When I hit Browse it brought me to C:\Windows\Media\ which has a ton of
sounds, so I arbitrarily picked one named "Windows Ding.wav" at
"C:\Windows\Media\Sonata\Windows Ding.wav".

In a batch file, this works but the batch file & MPC remain up:
@echo off
"C:\Windows\Media\Sonata\Windows Ding.wav"
exit

This also leaves a command window up and the MPC running:
@echo off
cmd.exe /K "C:\Windows\Media\Sonata\Windows Ding.wav"
exit

This couldn't find the sndrec32 app:
@echo off
sndrec32.exe /embedding /play /close "C:\Windows\Media\Sonata\Windows Ding.wav"
exit

This didn't work for the same reason:
@START /min C:\WINDOWS\System32\sndrec32.exe /play /close "C:\Windows\Media\Sonata\Windows Ding.wav"

Same thing happened with SoundRecorder.exe instead of "sndrec32.exe".

Googling, apparently sound recorder was replaced by voice recorder which is
an addon app:
https://www.microsoft.com/en-us/stor...r/9wzdncrfhwkn

But that app is really for RECORDING sound and not for playing it per se.
https://support.microsoft.com/en-us/...corder-app-faq

So what do you use to play from the command line a wav file on Windows 10?
  #7  
Old July 1st 17, 11:31 PM posted to alt.comp.os.windows-10
Roy Tremblay
external usenet poster
 
Posts: 169
Default Ring a bell when openvpn says "Initialiazation sequence completed"

Roy Tremblay actually wrote:

So what do you use to play from the command line a wav file on Windows 10?


I finally found a batch example to play a sound and then disappear.
https://superuser.com/questions/1019...command#528541

This works inside a batch file (but it pops up a window).
powershell -c (New-Object Media.SoundPlayer "C:\Windows\Media\tada.wav").Play(); Start-Sleep -s 5; Exit;

I'm having trouble getting that to work inside the openvpn config file
though. So I'm working on it.

Meanwhile, if you have a better way to play a sound in Windows 10 without
having to pop up anything, let me know please.
  #8  
Old July 2nd 17, 02:27 PM posted to alt.comp.os.windows-10
Roy Tremblay
external usenet poster
 
Posts: 169
Default Ring a bell when openvpn says "Initialiazation sequence completed"

Roy Tremblay actually wrote:

Meanwhile, if you have a better way to play a sound in Windows 10 without
having to pop up anything, let me know please.


I found out that OpenVPN will automatically run a batch file if it's put in
the same directory as the ovpn config file and if the batch file has the
same name as the config plus "_up", but it still didn't work.

C:\vpn\config.ovpn
C:\vpn\config_up.ovpn

Where config_up.ovpn is this two-line file:
@echo off
powershell -c (New-Object Media.SoundPlayer "C:\Windows\Media\notify.wav").PlaySync();

Each file works fine on its own, but there's no bell yet when used
together.
  #9  
Old July 2nd 17, 02:33 PM posted to alt.comp.os.windows-10
Roy Tremblay
external usenet poster
 
Posts: 169
Default Ring a bell when openvpn says "Initialiazation sequence completed"

Roy Tremblay actually wrote:

Each file works fine on its own, but there's no bell yet when used
together.


Same lack of bell occurred when I tried adding these commands to the
openvpn config file, where bell.bat is this two-line file:

@echo off
powershell -c (New-Object Media.SoundPlayer "C:\Windows\Media\notify.wav").PlaySync();

up C:\vpn\bell.bat
or
route-up C:\vpn\bell.bat

So, something isn't working as documented.
I'll probably give up because this is too much work just to ring a bell on
Windows.
  #10  
Old July 2nd 17, 03:20 PM posted to alt.comp.os.windows-10
Andy Burns[_6_]
external usenet poster
 
Posts: 1,318
Default Ring a bell when openvpn says "Initialiazation sequencecompleted"

Roy Tremblay wrote:

I found out that OpenVPN will automatically run a batch file if it's put in
the same directory as the ovpn config file and if the batch file has the
same name as the config plus "_up", but it still didn't work.

C:\vpn\config.ovpn
C:\vpn\config_up.ovpn


I've not checked the doc, but wouldn't that be more likely to be

C:\vpn\config_up.cmd
  #11  
Old July 2nd 17, 05:15 PM posted to alt.comp.os.windows-10
Tim[_8_]
external usenet poster
 
Posts: 141
Default Ring a bell when openvpn says "Initialiazation sequence completed"

Roy Tremblay wrote in
news
Roy Tremblay actually wrote:

Thanks for the suggestion that there must be a command inside of the
OpenVPN options which can ring a bell.


Now I need to find a windows script to ring a bell.

Do a Google search for bell.wmv or gong.wmv, etc. I found the files I
mentioned by searching for AOL sounds.

[I used to help a friend out with thier Macintosh back when PCs were just
getting started (late 90s). Just for grins I replaced the error chime with
a clip of Poo saying "Oh, bother!" Luckily, they thought it was as humorous
as I did.]
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 12:35 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.