예제 #1
0
파일: Test.cs 프로젝트: jaxohua/fsi
        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);
        }
예제 #2
0
 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);
     }
 }