Folks keep calling after 9pm and waking the baby. We use Vonage, and I really wish they had a feature where I could indicate "do not call" times. Alas, they don't. So, then I wished for a Vonage Web Service. Nope.
So, instead here's a Watir script, recorded with a early version of Michael Kelly and John Hann's port of WatirMaker to Ruby (via "ruby watirmaker.rb > myscript.rb") then edited to taste.
#Enable Instant Forward to Voice Mailrequire 'watir'include Watir ie = IE.newie.goto( 'http://www.vonage.com/' ) ie.text_field( :name, 'username' ).set( 'username' )ie.text_field( :name, 'password' ).set( 'password' )ie.button( :name, 'submit' ).click ie.link(:text,"Features").click ie.button( :name, 'callForwardingButton' ).click ie.select_list( :name, 'callForwardingSeconds' ).select( 'Instantly' )ie.text_field( :name, 'singleAddress' ).set( '15035551234' ) ie.button(:value,'Enable').click ie.link(:text,"Log Out").clickie.close
#Enable Instant Forward to Voice Mailrequire 'watir'include Watir
ie = IE.newie.goto( 'http://www.vonage.com/' )
ie.text_field( :name, 'username' ).set( 'username' )ie.text_field( :name, 'password' ).set( 'password' )ie.button( :name, 'submit' ).click
ie.link(:text,"Features").click
ie.button( :name, 'callForwardingButton' ).click
ie.select_list( :name, 'callForwardingSeconds' ).select( 'Instantly' )ie.text_field( :name, 'singleAddress' ).set( '15035551234' )
ie.button(:value,'Enable').click
ie.link(:text,"Log Out").clickie.close
And the disable...
require 'watir'include Watir ie = IE.newie.goto( 'http://www.vonage.com/' ) ie.text_field( :name, 'username' ).set( 'username')ie.text_field( :name, 'password' ).set( 'password' )ie.button( :name, 'submit' ).click ie.link(:text,"Features").click ie.button( :name, 'callForwardingButton' ).click ie.button(:value,'Disable').click ie.link(:text,"Log Out").clickie.close
require 'watir'include Watir
ie.text_field( :name, 'username' ).set( 'username')ie.text_field( :name, 'password' ).set( 'password' )ie.button( :name, 'submit' ).click
ie.button(:value,'Disable').click
These now run on a schedule in my house using the Windows Scheduler. If you run them like 'ruby enable.rb -b' they run in the background and you'll never see Internet Explorer.
Ads by The Lounge