-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAntiAFK.cs
43 lines (37 loc) · 1.08 KB
/
AntiAFK.cs
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
using static AntiAFK.Program;
namespace AntiAFK
{
public partial class App : Form
{
public App()
{
InitializeComponent();
}
private async void BtnStop_Click(object sender, EventArgs e)
{
DisableButton(btnStop);
StopMessage(statusBarMessage);
await AddDelay(1000);
keepAlive = false;
EnableButton(btnStart);
ResetTimer(statusBarTimer);
ResetMessage(statusBarMessage);
}
private async void BtnStart_ClickAsync(object sender, EventArgs e)
{
DisableButton(btnStart);
await StartMessage(statusBarMessage);
keepAlive = true;
EnableButton(btnStop);
RunningMessage(statusBarMessage);
StartTimer(statusBarTimer);
_ = SimulateKeystrokes(usrInput.Value);
}
private void App_Load(object sender, EventArgs e)
{
}
private void StatusStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
}
}
}