Advertisement
Guest User

Untitled

a guest
Oct 11th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement