Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. string Speech = e.Result.Text;
  2. if (Speech == "I WANT TO SEARCH SOMETHING")
  3. {
  4. QEvent = Speech;
  5. wiki.SpeakAsync("what do you want to search");
  6. Speech = string.Empty;
  7. }
  8. else if (Speech != string.Empty && QEvent == "I WANT TO SEARCH SOMETHING")
  9. {
  10. Process.Start("http://google.com/search?q=" + Speech);
  11. QEvent = string.Empty;
  12.  
  13. Num = rnd.Next(1, 4);
  14. if (Num == 1) { wiki.SpeakAsync("Alright, I am searching " + Speech + " in google"); }
  15. else if (Num == 2) { wiki.SpeakAsync("ok sir, I am searching " + Speech); }
  16. else if (Num == 3) { wiki.SpeakAsync("Alright, I am searching "); }
  17. Speech = string.Empty;
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement