Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 11th, 2012  |  syntax: None  |  size: 0.95 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace TMS2
  11. {
  12.   public partial class TMSForm : Form
  13.   {
  14.     public TMSForm()
  15.     {
  16.       InitializeComponent();
  17.     }
  18.  
  19.  
  20.     private void timer1_Tick(object sender, EventArgs e)
  21.     {
  22.         SendKeys.Send(txt1.Text);
  23.         SendKeys.Send("{ENTER}");
  24.         SendKeys.Send(txt2.Text);
  25.         SendKeys.Send("{ENTER}");
  26.         SendKeys.Send(txt3.Text);
  27.         SendKeys.Send("{ENTER}");
  28.     }
  29.  
  30.  
  31.     private void btn1_Click(object sender, EventArgs e)
  32.     {
  33.       //Thread.Sleep(800);
  34.       timer1.Enabled = true;
  35.     }
  36.  
  37.     private void btn2_Click(object sender, EventArgs e)
  38.     {
  39.       timer1.Enabled = false;
  40.     }
  41.  
  42.     private void pictureBox1_Click(object sender, EventArgs e)
  43.     {
  44.       picSplash.Visible = false;
  45.     }
  46.   }
  47. }
clone this paste RAW Paste Data