Advertisement
proff001

Skype Tool Code

Feb 6th, 2017
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.55 KB | None | 0 0
  1. using AxSKYPE4COMLib;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11.  
  12. namespace Skype_Tool_Vortex
  13. {
  14.     public partial class Form1 : Form
  15.     {
  16.         public Form1()
  17.         {
  18.             InitializeComponent();
  19.         }
  20.  
  21.         private void button1_Click(object sender, EventArgs e)
  22.         {
  23.             axSkype1.Attach();
  24.             label2.Text = "Connected!";
  25.             label3.Text = ("Welcome: " + axSkype1.CurrentUserProfile.FullName);
  26.             MessageBox.Show("Thx For Using TDK's Test Skype Tool");
  27.         }
  28.  
  29.         private void button2_Click(object sender, EventArgs e)
  30.         {
  31.             axSkype1.Client.Start();
  32.         }
  33.  
  34.         private void button3_Click(object sender, EventArgs e)
  35.         {
  36.             axSkype1.Client.Minimize();
  37.         }
  38.  
  39.         private void button4_Click(object sender, EventArgs e)
  40.         {
  41.             axSkype1.Client.Shutdown();
  42.         }
  43.  
  44.         private void button5_Click(object sender, EventArgs e)
  45.         {
  46.             timer1.Start();
  47.         }
  48.  
  49.         private void button6_Click(object sender, EventArgs e)
  50.         {
  51.             timer1.Stop();
  52.         }
  53.  
  54.         private void timer1_Tick(object sender, EventArgs e)
  55.         {
  56.             axSkype1.Client.OpenMessageDialog(textBox1.Text, textBox2.Text);
  57.             axSkype1.Client.Focus();
  58.             SendKeys.Send("{enter}");
  59.         }
  60.     }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement