public void shout(string str) { try { var p = waitForImage("send", 100); click(p.X - 100, p.Y + 6); Thread.Sleep(100); dm.SendString2(hwnd, str); Thread.Sleep(100); click(p.X, p.Y); } catch (Exception) { } }