AutoHotkey Community

It is currently May 27th, 2012, 5:03 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: April 30th, 2010, 8:30 am 
Offline

Joined: November 10th, 2009, 3:57 am
Posts: 11
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 82 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group