public Test() { InitializeComponent(); w = new WQLUtil.Util.Window.WindowManager(WinEventProc); m = new WQLUtil.Util.Mouse.MouseManager(); m.Hook.OnMouseActivity += new MouseEventHandler(MouseMoved); // m.Hook.KeyDown += new KeyEventHandler(ExtKeyDown); m.Hook.KeyPress += new KeyPressEventHandler(ExtKeyPress); // m.Hook.KeyUp += new KeyEventHandler(ExtKeyUp); }
public Logger(RichTextBox richTextBox1, MWindow win) { this.richTextBox1 = richTextBox1; try { w = new WQLUtil.Util.Window.WindowManager(WinEventProc); m = new WQLUtil.Util.Mouse.MouseManager(); m.Hook.KeyPress += new KeyPressEventHandler(ExtKeyPress); m.Hook.KeyUp += new KeyEventHandler(ExtKeyUp); sw = new StreamWriter("Sample" + i + ".txt"); mWindow = win; } catch (Exception ex) { Debug.Print(ex.StackTrace); } }