This repository was archived by the owner on Sep 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm1.cs
More file actions
216 lines (190 loc) · 6.74 KB
/
Copy pathForm1.cs
File metadata and controls
216 lines (190 loc) · 6.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ClickerWeb
{
public partial class Form1 : Form
{
string butid = "d_l";
public Form1()
{
InitializeComponent();
openFileDialog1.InitialDirectory = Application.StartupPath.ToString();
comboBox1.SelectedIndex = 0;
}
void status_upd()
{
int i = listBox1.Items.Count;
label1.Text = $@"Уйдет времени: {(i * 4.2).ToString()} сек. Ссылок: {i.ToString()}";
if (i > 0)
{
if (listBox1.Items[0].ToString().Contains("upload.ee"))
{
comboBox1.SelectedIndex = 0;
}
else if (listBox1.Items[0].ToString().Contains("zippyshare.com"))
{
comboBox1.SelectedIndex = 1;
}
else if (listBox1.Items[0].ToString().Contains("anonfiles.com"))
{
comboBox1.SelectedIndex = 2;
}
else
{
comboBox1.SelectedIndex = 3;
}
}
}
async private void btn_start_Click(object sender, EventArgs e)
{
try
{
status_upd();
webBrowser1.ScriptErrorsSuppressed = true;
if (comboBox1.Text == "Другой id")
butid = textBox1.Text;
try
{
for (int i = listBox1.Items.Count-1; i >= 0; i--)
{
webBrowser1.Navigate((listBox1.Items[i]).ToString());
await Task.Delay(2000);
webBrowser1.Document.GetElementById(butid).InvokeMember("Click");
await Task.Delay(2000);
System.Diagnostics.Process.Start("cmd.exe", "/c taskkill /IM iexplore.exe");
}
MessageBox.Show("Работа завершена!");
}
catch{MessageBox.Show("Указаны неверные ссылки или id кнопки", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);}
}
catch{MessageBox.Show("Указан неверный файл", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);}
}
private void btn_choose_file_Click(object sender, EventArgs e)
{
openFileDialog1.Filter = "TXT files (*.txt)|*.txt|All files (*.*)|*.*";
openFileDialog1.FilterIndex = 1;
openFileDialog1.FileName = "";
openFileDialog1.RestoreDirectory = true;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
try
{
string fileName = openFileDialog1.FileName;
listBox1.Items.Clear();
string[] lines = File.ReadAllLines(fileName);
listBox1.Items.AddRange(lines);
status_upd();
}
catch { }
}
}
private void picGit_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Okronix/");
}
private void picTG_Click(object sender, EventArgs e)
{
Process.Start("https://t.me/devFRAME/");
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "Другой id")
{
textBox1.Visible = true;
}
else
{
textBox1.Visible = false;
}
if (comboBox1.Text == "Upload.ee")
{
butid = "d_l";
}
else if (comboBox1.Text == "ZippyShare.com")
{
butid = "dlbutton";
}
else { }
}
private void btn_scheduler_Click(object sender, EventArgs e)
{
MessageBox.Show("Скоро :)", "ClickerWeb");
}
private void btn_edit_Click(object sender, EventArgs e)
{
int indexList = 0;
if (listBox1.SelectedIndex != -1)
{
indexList = listBox1.SelectedIndex;
if ((textBox2.Text.Contains("http://")) || textBox2.Text.Contains("https://"))
{
listBox1.Items.RemoveAt(indexList);
listBox1.Items.Insert(indexList, textBox2.Text);
}
else{MessageBox.Show("Введите ссылку в поле");}
}
else{MessageBox.Show("Для начала выберите строку");}
status_upd();
}
private void btn_delete_Click(object sender, EventArgs e)
{
int indexList;
if (listBox1.SelectedIndex != -1)
{
indexList = listBox1.SelectedIndex;
listBox1.Items.RemoveAt(indexList);
if (listBox1.Items.Count != 0)
{
listBox1.SelectedIndex = indexList - 1;
}
}
else{MessageBox.Show("Для начала выберите строку");}
status_upd();
}
private void btn_add_Click(object sender, EventArgs e)
{
if ((textBox2.Text.Contains("http://")) || textBox2.Text.Contains("https://"))
{
listBox1.Items.Add(textBox2.Text);
}
else
{MessageBox.Show("Введите ссылку в поле");}
status_upd();
}
private void btn_clear_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
status_upd();
}
private void listBox1_Click(object sender, EventArgs e)
{
try
{
textBox2.Text = listBox1.SelectedItem.ToString();
}
catch
{
}
}
private void Form1_Load(object sender, EventArgs e)
{
ToolTip t = new ToolTip();
t.Active = true;
t.SetToolTip(picTG, "Перейти в телеграм канал автора");
t.SetToolTip(picGit, "Перейти на GitHub автора");
}
private void button1_Click(object sender, EventArgs e)
{
textBox2.Text = "";
}
private void picWeb_Click(object sender, EventArgs e)
{
Process.Start("https://okronix.ru");
}
}
}