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. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 |
|
|