Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. private string Text = "Hallo dies ist ein Test.{n}{wait 5000}Hier die zweite Zeile.{n}{wait 7000}Und das die letzte Zeile."
  2.  
  3. private void GetSplits(string keytext)
  4. {
  5. string[] newlinetexts = Regex.Split(keytext, @"{n}");
  6. foreach (string newlinetext in newlinetexts)
  7. {
  8. API.SendChat(newlinetext);
  9. }
  10. }
  11.  
  12. public void BKey_MouseDown(object sender, MouseEventArgs e)
  13. {
  14. if (e.Button.ToString() == "XButton1" && Text != "")
  15. {
  16. GetSplits(Text);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement