• Home
  • PHP
  • MySQL
  • Demos
  • HTML
  • CSS
  • jQuery
  • Framework
  • Social
  • Request Tutorial
PHP Lift
  • Home
  • Demos
  • Advertisement
PHP Lift
  • Home
  • PHP
  • MySQL
  • Demos
  • HTML
  • CSS
  • jQuery
  • Framework
  • Social
  • Request Tutorial
  • Follow
    • Facebook
    • Twitter
    • Google+
    • Pinterest
    • Youtube
    • Instagram
    • RSS
How do I send an auto-reply message on Skype?
Home
Bot

How do I send an auto-reply message on Skype?

May 4th, 2021 Huzoor Bux Bot, Python, Social 0 comments

Facebook Twitter Google+ LinkedIn Pinterest

As you all know skype doesn’t have any auto-reply feature when you are offline Many organizations use it for customer support and they need that feature when offline. So in this tutorial, I will show you that how you can make a simple skype auto-reply software in Python.

A client asks me to find something for a skype auto-responder I searched on google and found Pamela for skype (Pamela for skype was used to record calls, chat, video calls, and many more features.) but it discontinued in mid of 2017.

So I have decided to make an autoresponder as I make for WhatsApp Chatbot in Python use the same pattern and make a skype auto-reply bot in python.

Source Code

DOWNLOAD CODE

Download Windows software

DOWNLOAD CODE

Here is the video demo:

Coding:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
import time

driverPath = "chrome/chromedriver"

driver = webdriver.Chrome(executable_path=driverPath)

driver.get('https://web.skype.com')
print('Please login and press enter.......')
input()

with open('message.txt') as f:
message = f.read()
f.close()

def send_message(msg):
whatsapp_msg = driver.find_element_by_xpath('//div[@aria-label="Type a message"]')
for part in msg.split('\n'):
whatsapp_msg.send_keys(part)
ActionChains(driver).key_down(Keys.SHIFT).key_down(Keys.ENTER).key_up(Keys.SHIFT).key_up(Keys.ENTER).perform()

ActionChains(driver).send_keys(Keys.RETURN).perform()

def unreadMessageProcess():
try:

unread_chat = driver.find_element_by_xpath('//div[contains(@id, "rx-vlv")]/div/div/div/div[3]/div[2]/div')
unread_chat = unread_chat.find_element_by_xpath('./..')
unread_chat.click()
time.sleep(1)
send_message(message)
except Exception:
return False

while True:
print("checking new unread message....")
unreadMessageProcess()
time.sleep(10)

The above code uses Selenium (automate browsers) with Google chrome webdriver.

It will open your skype on the web and check if there is any unread message it will open that message and get your custom message from the message.txt file and send that message to that person.

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

  • Tags
  • auto-reply bot
  • pytho
  • skype
  • skype bot
Facebook Twitter Google+ LinkedIn Pinterest
Next article How to integrate jQuery FullCalendar with PHP & MySQL Example
Previous article How do you create subdomains dynamically using PHP when a user signs up?

Huzoor Bux

I am a PHP Developer

Related Posts

How to Login with Google Account in PHP & MySQLi MySQL
February 15th, 2022

How to Login with Google Account in PHP & MySQLi

Create Like & Unlike System in PHP, MySQL and jQuery jQuery
September 2nd, 2020

Create Like & Unlike System in PHP, MySQL and jQuery

WhatsApp chatbot in Python using Dialogflow.com Python
December 26th, 2019

WhatsApp chatbot in Python using Dialogflow.com

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Advertisement
    Like us
    Recent Posts
    • How to Extract Text from PDF using PHP
    • 3 reasons why you SHOULD write tests
    • How to create a screen recorder in JavaScript
    • Best 10 Programming Languages that will rule in 2022
    • Top 7 Websites To Get Your First Paid Internship
    Categories
    • API
    • Bootstrap
    • Bot
    • CSS
    • CSS 3
    • Database
    • Designing
    • Framework
    • Guide
    • HTML
    • HTML 5
    • JavaScript
    • jQuery
    • MySQL
    • Node.js
    • oAuth
    • Payment
    • PHP
    • Python
    • Social
    • Tips
    • WordPress
    Weekly Tags
    • PHP
    • How to
    • javascript
    • api
    • MYSQL
    • jQuery
    • PHP Basics
    • Programming Habits
    • HTML5
    • PHP framework
    • About
    • Privacy Policy
    • Back to top
    © PHPLift 2021. All rights reserved.