private void button4_Click_1(object sender, EventArgs e) { Bitmap BottomPanel = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 1466, 53, 0, 651); Bitmap TopPanel = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 1466, 29, 0, 0); Bitmap RightSidePanel = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 220, 624, 0, 313); Bitmap LeftBrowserPanel = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 520, 625, 0, 29); Bitmap RightBrowserPanel = Crop(System.IO.Directory.GetCurrentDirectory() + "\\RainbowTemplate.bmp", 729, 625, 519, 29); LeftBrowserPanel.Save(@"LBP.bmp"); RightBrowserPanel.Save(@"RBP.bmp"); MainBrowser.EvaluateScript("document.getElementById('booty').style.backgroundImage = 'url(https://i.imgur.com/ZFi2bAs.png)';", TimeSpan.FromMilliseconds(1)); MainBrowser.EvaluateScript("document.getElementById('cons').style.backgroundColor = 'transparent';", TimeSpan.FromMilliseconds(1)); MainBrowser.EvaluateScript("document.getElementById('sb').style.backgroundColor = 'transparent';", TimeSpan.FromMilliseconds(1)); RightBrowser.EvaluateScript("document.getElementById('bootys').style.backgroundImage = 'url(https://i.imgur.com/iaNeUAu.png)';", TimeSpan.FromMilliseconds(1)); b_panel.BackgroundImage = BottomPanel; Bar.BackgroundImage = TopPanel; }
public void Run() { while (true) { _source = MainBrowser.getSource(); _sourceRight = RightBrowser.getSource(); List <String> lines = Regex.Split(_source, "<button ").ToList(); List <String> linesCB = Regex.Split(_sourceRight, "<select ").ToList(); List <String> linesBtn = Regex.Split(_sourceRight, "<button ").ToList(); foreach (string l in lines) { string h = l.ToLower(); if (h.Contains("id=\"")) { string btn = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0]; if (h.Contains("name=\"") && btn.Contains("btn_")) { string name = Regex.Split(Regex.Split(h, "name=\"")[1], "\"")[0]; if (clicked(name)) { MainBrowser.EvaluateScript("document.getElementById('" + btn + "').setAttribute('name', 'false')", TimeSpan.FromMilliseconds(1)); buttons btnT = new buttons(btn); Thread exe = new Thread(buttons.Initalize); exe.Start(); } } string chk = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0]; if (h.Contains("name=\"") && chk.Contains("chk_")) { string name = Regex.Split(Regex.Split(h, "name=\"")[1], "\"")[0]; chks chkT = new chks(chk, name); Thread exe = new Thread(chks.Initalize); exe.Start(); } } } foreach (string a in linesCB) { string h = a.ToLower(); if (h.Contains("id=\"")) { string cb = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0]; if (h.Contains("value=\"") && cb.Contains("cb_")) { string value = Regex.Split(Regex.Split(h, "value=\"")[1], "\"")[0]; cbs cbT = new cbs(cb, value); Thread exe = new Thread(cbs.Initalize); exe.Start(); } string btn = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0]; if (h.Contains("value=\"") && btn.Contains("btn_")) { string value = Regex.Split(Regex.Split(h, "value=\"")[1], "\"")[0]; buttons btnT = new buttons(btn); Thread exe = new Thread(buttons.Initalize); exe.Start(); } } } foreach (string a in linesBtn) { string h = a.ToLower(); if (h.Contains("id=\"")) { string btn = Regex.Split(Regex.Split(h, "id=\"")[1], "\"")[0]; if (h.Contains("name=\"") && btn.Contains("btn_")) { string name = Regex.Split(Regex.Split(h, "name=\"")[1], "\"")[0]; if (clicked(name)) { RightBrowser.EvaluateScript("document.getElementById('" + btn + "').setAttribute('name', 'false')", TimeSpan.FromMilliseconds(1)); buttons btnT = new buttons(btn); Thread exe = new Thread(buttons.Initalize); exe.Start(); } } } } Thread.Sleep(5); } }