i want the number copied in seconds to be the timer interval for me timer1. how can I do that?
the user must first copy autoclicker to enter the mode then the user must copy the interval in seconds as a number. But when I now copy auto clicker he says that the copied is not a number
this is my code
if (clipboardText == "auto clicker")
{
if (int.TryParse(Clipboard.GetText(), out int x))
{
timer1.Interval = x * 1000;
}
//when clipboard isnt a number
else
{
notifyIcon1.Icon = SystemIcons.Exclamation;
notifyIcon1.BalloonTipTitle = "";
notifyIcon1.BalloonTipText = "No number in clipboard";
notifyIcon1.BalloonTipIcon = ToolTipIcon.Error;
notifyIcon1.ShowBalloonTip(1000);
return;
}
}