KeystrokeAPI
KeystrokeAPI copied to clipboard
When I dispose my keystrokeAPI, typing gets really slow on my pc.
bool isLogging = true;
while (isLogging)
{
if (!offlineKeyLogging)
{
isLogging= false;
try
{
Application.DoEvents();
keyAPIOf.Dispose();
GC.Collect();
GC.EndNoGCRegion();
}
catch (Exception ex)
{
Application.DoEvents();
}
}
Application.DoEvents();
}