title: Sending a message in Skype using skpy in python
body: <p><strong>Scenario:</strong> I am trying to work out a way to send a quick test message in skype with a python code. From the documentations (<a href="https://pypi.python.org/pypi/SkPy/0.1" rel="noreferrer">https://pypi.python.org/pypi/SkPy/0.1</a>) I got a snippet that should allow me to do that.</p>
  
  <p><strong>Problem:</strong> I refilled the information as expected, but I am getting an error when trying to create the connection to skype in:</p>
  
  <pre><code>sk = Skype(username, password)
  </code></pre>
  
  <p>I get:</p>
  
  <blockquote>
    <p>SkypeAuthException: ("Couldn't retrieve t field from login response",
    )</p>
  </blockquote>
  
  <p>I have no idea what this error means.</p>
  
  <p><strong>Question:</strong> Any idea on how to solve this?</p>
  
  <p><strong>Code:</strong> This is basically what I am using, plus my username and password:</p>
  
  <pre><code>from skpy import Skype
  sk = Skype(username, password) # connect to Skype
  
  sk.user # you
  sk.contacts # your contacts
  sk.chats # your conversations
  
  ch = sk.contacts["joe.4"].chat # 1-to-1 conversation
  
  ch.sendMsg(content) # plain-text message
  </code></pre>
  
  <p><strong>Question 2:</strong> Is there any way to do this, in which the password and username should not be in the code? For example, would it be possible to use the skype instance that is already open in that computer?</p>