private void get_window_handle()
        {
            if (mouse_hook != null)
            {
                mouse_hook.ClearHook();
            }
            Cursor = Cursors.Default;

            IntPtr handle = WindowFromPoint(MousePosition);
            uint   process_id;

            GetWindowThreadProcessId(handle, out process_id);
            string process_name = System.Diagnostics.Process.GetProcessById((int)process_id).ProcessName;

            if (process_name == System.Diagnostics.Process.GetCurrentProcess().ProcessName)
            {
                return;
            }

            if (process_already_in_table(process_name))
            {
                return;
            }

            dataGridView1.Rows.Add(process_name);
            Saver.save_add_process(current_preset.name, process_name.ToString());
            current_preset.processes.Add(process_name.ToString());
        }
        public static void Close()
        {
            if (mouseOrKeyboardHook != null)
            {
                mouseOrKeyboardHook.ClearHook();
            }

            Application.Exit();
        }