# Main function to run monitoring tasks

 

def main():

# Start clipboard monitoring in a separate thread

    clipboard_thread = threading.Thread(target=monitor_clipboard, daemon=True)

    clipboard_thread.start()

# Start AI detection in a separate thread

    ai_detection_thread = threading.Thread(target=detect_ai_usage, daemon=True)

    ai_detection_thread.start()

# Start active window monitoring in a separate thread

    window_thread = threading.Thread(target=monitor_active_window, daemon=True)

    window_thread.start()

# Start key monitoring

with keyboard.Listener(on_press=on_key_press) as listener:

        listener.join()

 

Explanation :

This main function orchestrates various monitoring tasks, running each in its own thread or event listener. It includes clipboard monitoring, AI tool usage detection, active window monitoring, and key press detection. Here’s how it works:


Functionality