Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string[] s = System.Diagnostics.Process.GetProcessesByName("foobar2000")[0].MainWindowTitle.Split((char)0x266b);
- string[] t = { "Circle", "Album", "Artist", "Title", "Time" };
- int[] cn = { 14, 15, 11, 9, 8, 4, 6 };
- string[] c = new string[cn.Length];
- for (int a = 0; a < c.Length; a++)
- c[a] = (char)3 + cn[a].ToString("D2");
- for (int a = 0; a < t.Length; a++)
- if (t[a].Length > s[a].Length)
- t[a] = t[a].Substring(0, s[a].Length);
- else t[a] += c[0] + new string('═', s[a].Length - t[a].Length);
- string str =
- c[0] + "╔═" + c[1] + t[0] + c[0] + "═╦═" + c[1] + t[1] + c[0] + "═╦═" + c[1] + t[2] + c[0] + "═╦═" + c[1] + t[3] + c[0] + "═╦═" + c[1] + t[4] + c[0] + "═╗\n" +
- c[0] + "║ " + c[2] + s[0] + c[0] + " ║ " + c[3] + s[1] + c[0] + " ║ " + c[4] + s[2] + c[0] + " ║ " + c[5] + s[3] + c[0] + " ║ " + c[6] + s[4] + c[0] + " ║\n" +
- c[0] + "╚" +
- new string('═', s[0].Length + 2) + '╩' +
- new string('═', s[1].Length + 2) + '╩' +
- new string('═', s[2].Length + 2) + '╩' +
- new string('═', s[3].Length + 2) + '╩' +
- new string('═', s[4].Length + 2) + "╝";
- string last = str.Substring(str.LastIndexOf('\n') + 1);
- string foot = ",5T,4h,7i,8s ,9g,11l,10o,12r,13i,6o,5u,4s ,7/,8n,9p ,11b,10r,12o,13u,6g,5h,4t ,7t,8o ,9y,11o,10u ,12b,13y ,6a ,5s,4u,7b,8s,9i,11d,10i,12a,13r,6y ,5o,4f ,7#,8/,9G,11/,10T,12V,13 ,6E,5N,4T,7E,8R,9P,11R,10I,12S,13E,6S";
- string foots = "This glorious /np brought to you by a subsidiary of #/G/TV ENTERPRISES";
- foot = foot.Replace(',', (char)3) + c[0];
- if (foots.Length + 4 > last.Length - 3) {
- str += "\n" + foot;
- } else {
- int i = str.Length - (foots.Length + 4);
- string bu = str.Substring(i + 1);
- bool fork = str[i] == '╩';
- str = str.Substring(0, i);
- str += fork ? '╬' : '╦';
- str += bu.Substring(0, bu.Length - 1) + "╣\n";
- string pad = c[0] + new string(' ', last.Length - 4 - bu.Length);
- str += pad + "║ " + foot + " ║\n";
- str += pad + "╚═" + new string('═',foots.Length) + "═╝";
- }
- Application.DoEvents();
- Clipboard.Clear();
- Application.DoEvents();
- Clipboard.SetText(str + "\n");
- Application.DoEvents();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement