jsm wrote:
ok
thankyou
that sound resonable
so how then would you enter a phone number and text into skype
when an email arrives containing say header of email is sms
the body of the email is say first a mobile number followed by text ABC
You will have to use the WindowSpy to get the ClassNN names for the phone number input field and the text input field.
I don't know how skype is layed out but here's a start:
Code:
skypeInput(sPhone, sText)
{
ControlSend, ClassNNofphoneinput, sPhone, Skype ; change ClassNNofphoneinput to the ClassNN found with windowspy
; the third parameter (where it says Skype now) should be the Skype window name from windows
Sleep 500 ; to prevent input errors
ControlSend, ClassNNoftextinput, sText, Skype ; change ClassNNoftextinput to the ClassNN found with windowspy
; the third parameter (where it says Skype now) should be the Skype window name from windows
Sleep 500
;if you want to click a send button for instance it would be done like this:
ControlClick, ClassNNofbutton, Skype ;where ClassNNofbutton is the ClassNN of the button retrieved with WindowSpy
; the third parameter (where it says Skype now) should be the Skype window name from windows
Sleep 250
Return
}
; call the function from your script using:
skypeInput(phonenr, smstext) ;where phonenr is the receipient phone number and smstext is the text to send through skype
; e.g. skypeInput(5551234, hello there)
Ofcourse, you would call the function after receiving the email. And remember, you can put the function anywhere in the script, the function call does not have to be below the function definition.