22/02/02 10:25:26.24 qrF7Vqa00.net
static bool _stopTest;
public void StartTest()
{
_stopTest = false;
Test();
}
public void StopTest()
{
_stopTest = true;
}
static async void Test()
{
while( !_stopTest )
{
SendKeys.Send("Break");
await Task.Delay(10000);
}
}
止めたいところでStopTestを呼ぶ