Automated SMS

Automated SMS

sms.rb

This script sends an SMS message to whatever mobile phone number you choose. I caution you not to abuse the functionality, but you do have to try it. The premise is to automate the use of a site that sends SMS messages to people for you. Instead of grabbing static web content, this script will actually automate filling out and submitting a web form.

The Code

 require 'win32ole'

 ie = WIN32OLE.new('InternetExplorer.Application')
 ie.navigate("http://toolbar.google.com/send/sms/index.php")

 ie.visible = true
 sleep 1 until ...

Get Wicked Cool Ruby Scripts now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.