Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Thread((ThreadStart)delegate
- {
- if (myEncoding.GetBytes(result).Length > 150)
- {
- int loop = myEncoding.GetBytes(result).Length / 150;
- int idx = 0;
- for (int i = 0; i <= loop; i++)
- {
- if (i == 0)
- {
- macro.setMacroBody(wherechat + " " + myEncoding.GetString(buf, 0, getWordByByte(result, 0)));
- Console.WriteLine(wherechat + " " + myEncoding.GetString(buf, 0, getWordByByte(result, 0)));
- idx = getWordByByte(result, 0);
- } else
- {
- macro.setMacroBody(wherechat + " " + myEncoding.GetString(buf, idx, getWordByByte(result, idx)));
- Console.WriteLine(wherechat + " " + myEncoding.GetString(buf, idx, getWordByByte(result, idx)));
- idx = idx + getWordByByte(result, idx);
- }
- macro.SendKey(key);
- Thread.Sleep(100);
- macro.setMacroBody();
- //break;
- }
- }
- else
- {
- macro.setMacroBody(wherechat + " " + result);
- macro.SendKey(key);
- Thread.Sleep(100);
- macro.setMacroBody();
- }
- }).Start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement