Ejemplo n.º 1
0
 void Update() {
     if (callback == null)
         return;
     if (thread != null && !thread.IsDone)
         thread.Update();
     if (thread.IsDone)
     {
         thread.OnFinished();
         Debug.Log("TCP-Update: Thread is done. Starting another");
         thread = new TCPThread(callback);
         thread.Start();
     }
 }
Ejemplo n.º 2
0
 void Update()
 {
     if (callback == null)
     {
         return;
     }
     if (thread != null && !thread.IsDone)
     {
         thread.Update();
     }
     if (thread.IsDone)
     {
         thread.OnFinished();
         Debug.Log("TCP-Update: Thread is done. Starting another");
         thread = new TCPThread(callback);
         thread.Start();
     }
 }
Ejemplo n.º 3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            logView      = new LogView();
            logView.Dock = DockStyle.Fill;
            logPanel.Controls.Add(logView);
            logView.Log("Application running", LogView.LogType.Information);

            AutobotDisconnected();
            Form form = this;

            HIDDLLInterface.ConnectToHID(ref form);

            clientDataMany = new ClientData[] { };

            CreateDropDownButton();
            CreateDropDownButtonCombinations();

            trayToolStripMenuItem.Checked             = Settings.Default.Settings_Tray;
            topToolStripMenuItem.Checked              = Settings.Default.Settings_Top;
            lastToolStripMenuItem.Checked             = Settings.Default.Settings_Last;
            showReceivedDataToolStripMenuItem.Checked = Settings.Default.Settings_Show_Keys;
            this.TopMost = Settings.Default.Settings_Top;

            tcp = new TCPThread();
            tcp.OnChangeStatus       += Tcp_OnChangeStatus;
            tcp.OnTriggerServerAction = ClientAction;

            logView.Log("IP : " + tcp.LocalAddress, LogView.LogType.Information);
            logView.Log("Port : " + tcp.Port, LogView.LogType.Information);
            logView.Last = Settings.Default.Settings_Last;

            Bot.Instance.OnPingTrigger += Instance_OnPingTrigger;

            tcp.Run();

            botQueue = new BotQueue();
            botQueue.OnErrorOccured += BotQueue_OnErrorOccured;
        }
Ejemplo n.º 4
0
 void Start()
 {
     thread = new TCPThread(callback);
     thread.Start();
 }
Ejemplo n.º 5
0
 void Start() {
     thread = new TCPThread(callback);
     thread.Start();
     
 }