public HIDListener(GUI o)
        {
            Debug.WriteLine("HIDListen instansiated ");
            owner = o;
            Thread thread = Thread.CurrentThread;

            owner.ServiceDebugConsole("HIDListener started on Thread : " + thread.Name + thread.ManagedThreadId);

            m_KeyboardHookManager = new KeyboardHookListener(new GlobalHooker());
            m_KeyboardHookManager.Enabled = true;

            m_MouseHookManager = new MouseHookListener(new GlobalHooker());
            m_MouseHookManager.Enabled = true;

            Hooker hook;
            hook = new GlobalHooker();
            m_KeyboardHookManager.Replace(hook);
            //m_KeyboardHookManager.Enabled = true;
            m_MouseHookManager.Replace(hook);

            m_MouseHookManager.MouseMove += HookManager_MouseMove;
            m_MouseHookManager.MouseClickExt += HookManager_MouseClick;
            m_MouseHookManager.MouseUp += HookManager_MouseUp;
            m_MouseHookManager.MouseDown += HookManager_MouseDown;
            m_MouseHookManager.MouseDoubleClick += HookManager_MouseDoubleClick;
            m_MouseHookManager.MouseWheel += HookManager_MouseWheel;
               // m_MouseHookManager.MouseDownExt += HookManager_Supress;
            m_KeyboardHookManager.KeyDown += HookManager_KeyDown;
            m_KeyboardHookManager.KeyUp += HookManager_KeyUp;
            m_KeyboardHookManager.KeyPress += HookManager_KeyPress;

            owner.ServiceDebugConsole("HIDListener start Completed : " + thread.Name);
        }
Example #2
0
 public ServiceGUI()
 {
     gui = new GUI();
     Thread t = new Thread(runForm);
     t.Start();
     //System.Threading.Thread.Sleep(2000);
        // screen.InvokeTest();
 }
 public SocketListener(NetworkManager o, GUI gui, int p)
 {
     port = p;
     owner = o;
     ownerGUI = gui;
     t = new Thread(new ParameterizedThreadStart(threadmain));
     t.Name = "NETListenThread:" + port;
     t.Start();
 }
        public SocketSender(GUI o,String url,int p)
        {
            URL = url;
            owner = o;
            Port = p;
            waiting = false;
            msg = "SEND TEST";
            owner.NetDebugConsole("Send Thread Started!");

            t = new Thread(new ParameterizedThreadStart(threadmain));
            t.Name = "NETSendThread:" + URL + ":" + Port;
            t.Start();
        }
Example #5
0
        public Host(GUI owner, String hn,String ic, String ip4, String ip6, String tor)
        {
            Icon = ic;
            Hostname = hn;
            IP4Addr = ip4;
            IP6Addr = ip6;
            TORURL = tor;

            commandConnections = new SocketSender[3];
            commandConnections[0] = new SocketSender(owner,IP4Addr,cmd0);
            commandConnections[1] = new SocketSender(owner,IP6Addr,cmd1);
            commandConnections[2] = new SocketSender(owner,TORURL,cmd2);
        }
 public ApplicationManager(GUI o)
 {
     owner = o;
 }
Example #7
0
 public void setGUI(GUI g)
 {
     theGUI = g;
 }
 public ServiceManager(GUI o)
 {
     //Called in GUI Thread, avoid coding here.
     owner = o;
     runHIDListen = false;
 }
 public DebugConsole(GUI o)
 {
     owner = o;
     InitializeComponent();
 }
 public CommandParser(GUI o)
 {
     owner = o;
 }
 public HIDListener(GUI o)
 {
     owner = o;
     HIDListener();
 }
Example #12
0
 public CommandQue(GUI o)
 {
     owner = o;
     Que = new ArrayList();
 }
 public NetworkManager(GUI o)
 {
     owner = o;
     hosts = new ArrayList();
 }