diff --git a/software/main.go b/software/main.go index b73450a..0190c80 100644 --- a/software/main.go +++ b/software/main.go @@ -50,15 +50,16 @@ func main() { } if n > 0 { - log.Printf("读取到 %d 字节数据: %d\n", n, buffer[:n]) + // 这里可以添加处理数据的逻辑 if buffer[0] == 0x02 { robotgo.Click("left") + } else { + log.Printf("读取到 %d 字节数据: %d\n", n, buffer[:n]) } - } else { // 当没有读取到数据时,可以根据需要处理或简单跳过 - // log.Println("没有新数据") + log.Println("没有新数据") } // 可以根据需要添加适当的延迟,避免无数据时CPU占用过高 diff --git a/software/winres/tiktok.png b/software/winres/tiktok.png new file mode 100644 index 0000000..a053f30 Binary files /dev/null and b/software/winres/tiktok.png differ diff --git a/software/winres/work.jpg b/software/winres/work.jpg deleted file mode 100644 index 28b37b1..0000000 Binary files a/software/winres/work.jpg and /dev/null differ diff --git a/software/winres/worker.png b/software/winres/worker.png new file mode 100644 index 0000000..124e536 Binary files /dev/null and b/software/winres/worker.png differ diff --git a/software/worker.exe b/software/worker.exe index 7bcd1f8..2ff6fbb 100644 Binary files a/software/worker.exe and b/software/worker.exe differ