Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private string Text = "Hallo dies ist ein Test.{n}{wait 5000}Hier die zweite Zeile.{n}{wait 7000}Und das die letzte Zeile."
- private void GetSplits(string keytext)
- {
- string[] newlinetexts = Regex.Split(keytext, @"{n}");
- foreach (string newlinetext in newlinetexts)
- {
- API.SendChat(newlinetext);
- }
- }
- public void BKey_MouseDown(object sender, MouseEventArgs e)
- {
- if (e.Button.ToString() == "XButton1" && Text != "")
- {
- GetSplits(Text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement