JamesB's suggestion of an e-mail to SMS gateway is a good one. I am not sure how accurate it is but there is a list of e-mail addresses you can use for this purpose for each of the main mobile networks in the UK here.
Originally Posted by acrobson
I currently use FastMail's e-mail to SMS service whenever I am unable to use my mobile phone, mainly because I have had an account with them for years, it is dead easy to use and more importantly, cheap. It costs $4.95 (£3.09) per year for a basic "Ad Free" account which enables you to use thier SMTP servers for sending e-mails, plus $0.12 (7p) per text message. To send a text message, you would create an e-mail in the usual way (or via a script), write your message in either the subject or body and then send it to a special e-mail address: email@example.com (the bit before the @ symbol being the recipients mobile phone number in international format) and that's all there is to it. The text message will be received by the other person seconds later.
Rather than use the MouseMove, MouseClick & Send (or ControlClick & ControlSend) functions in AutoIt, you should find the various UDFs for Internet Explorer to be more reliable (details on these can be found in AutoIt's help file).
Originally Posted by acrobson
Here's a script I created earlier which uses some of these functions to log into the Orange website and send a text message. To find the correct form values and names, I used the Web Developer extension (for Chrome or Firefox) and selected the "Display Form Details" option under Forms. I found this was a lot easier compared to searching through the source code of the webpage in question. Whoever did Orange's website has obviously never learnt about using CSS for layout.
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_Description=Send a text message via Orange's website
#AutoIt3Wrapper_Run_After=upx.exe --best --compress-resources=0 "%out%"
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
$oIE = _IECreate ("http://www.orange.co.uk/redirect/redirect=ext&linkfrom=hp4&link=dashboard_pos_3_link_1&article=todaypage09dashboardsendafreetext&destdomain=orange&linkto=https://services.orange.co.uk/sms/send", 0, 1, 1, 1) ; You could also use a short URL: http://goo.gl/EKuB
; LOGIN OR REGISTER
$oForm = _IEFormGetObjByName($oIE, "registrationForm")
$oLogin = _IEFormElementGetObjByName($oForm, "txtMSISDN")
_IEFormElementSetValue($oLogin, "07973123999") ; Your Orange mobile number
$oLogin = _IEFormElementGetObjByName($oForm, "txtPassword")
_IEFormElementSetValue($oLogin, "Pa$$W0rd") ; Your password
; Click "Continue" button. If the button wasn't an image, you would use: _IEFormSubmit($oForm)
_IEFormImageClick ($oIE, "continue", "name", "", 1)
; SEND A TEXT MESSAGE
$oTextForm = _IEFormGetObjByName($oIE, "smsform")
_IEFormElementRadioSelect($oTextForm, "1", "sms_from_rad") ; 0 = Send from website / 1 = Send as if from your phone
$oNumber = _IEFormElementGetObjByName($oTextForm, "sendSmsMessageToNumber")
_IEFormElementSetValue($oNumber, "07973100150") ; Recipients number
$oMessage = _IEFormElementGetObjByName($oTextForm, "sendSmsMessage")
_IEFormElementSetValue($oMessage, "Hello!") ; Message
; Click "Send" button
_IEFormImageClick ($oIE, "Send the message", "name", "", 1)
; Click "Send" button again to confirm
_IEFormImageClick ($oIE, "request2", "name", "", 1)