void hook_KeyPressed(object sender, KeyPressedEventArgs e) { var diff = (DateTime.UtcNow - this.last_run).TotalSeconds; if (diff > 1.2) { btn_skip_donation_Click(null, null); this.last_run = DateTime.UtcNow; } }
void hook_KeyPressed(object sender, KeyPressedEventArgs e) { var diff = (DateTime.UtcNow - this.last_run).TotalSeconds; if (diff > 1.2) { btn_skip_donation_Click(null, null); this.last_run = DateTime.UtcNow; } }