返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

mouse-movement

类似人类的鼠标移动模式。在自动化浏览器交互时使用,以避免被机器人检测机制发现。

person作者: jakexiaohubgithub

Mouse Movement Guidelines

Principles

  • Never move in straight lines
  • Add random delays between 50-200ms
  • Use bezier curves for natural paths
  • Vary movement speed (fast start, slow end)

Implementation Pattern

import random
import pyautogui

def human_move(x, y):
    duration = random.uniform(0.3, 0.8)
    pyautogui.moveTo(x, y, duration=duration, tween=pyautogui.easeOutQuad)
    time.sleep(random.uniform(0.05, 0.2))

Anti-Detection Tips

  • Add micro-jitters during movement
  • Randomize click timing
  • Simulate scroll behavior between actions