<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>断点社区-专业的老牌游戏安全技术交流社区 - Python</title>
    <link>https://www.bpsend.net/forum-15-1.html</link>
    <description>Latest 20 threads of Python</description>
    <copyright>Copyright(C) 断点社区-专业的老牌游戏安全技术交流社区</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 03 Oct 2026 07:34:43 +0000</lastBuildDate>
    <ttl>180</ttl>
    <image>
      <url>https://www.bpsend.net/static/image/common/logo_88_31.gif</url>
      <title>断点社区-专业的老牌游戏安全技术交流社区</title>
      <link>https://www.bpsend.net/</link>
    </image>
    <item>
      <title>游戏窗口失焦后，截图线程和输入线程怎么拆开</title>
      <link>https://www.bpsend.net/thread-648-1-1.html</link>
      <description><![CDATA[[md]最近在做游戏窗口的自动化时，踩过一个很具体的坑：截图线程和输入线程抢同一个 HWND，焦点一丢，SendInput 就打到别的窗口上。

比较稳的做法是把“找窗口、截图、发输入”拆开，不要在截图回调里直接发键。我现在的顺序是：

1. 用 EnumWindows 配窗口标题和类名 ...]]></description>
      <category>Python</category>
      <author>atang100</author>
      <pubDate>Fri, 02 Oct 2026 00:23:51 +0000</pubDate>
    </item>
    <item>
      <title>Python游戏自动化中图像识别的几种加速方案</title>
      <link>https://www.bpsend.net/thread-646-1-1.html</link>
      <description><![CDATA[[md]Python做游戏自动化时图像识别经常是瓶颈，几种加速方案：1. 缩小识别区域，不要全屏匹配，只检测关键UI元素 2. 用OpenCV的GPU加速版本，匹配速度提升5-10倍 3. 降低图像分辨率再做匹配，1080p降到540p精度损失很小 4. 用模板匹配代替特征匹配，简单场景下快得多 5. ...]]></description>
      <category>Python</category>
      <author>atang100</author>
      <pubDate>Thu, 01 Oct 2026 06:01:38 +0000</pubDate>
    </item>
    <item>
      <title>Python中用ctypes调用C++ DLL时的内存管理陷阱</title>
      <link>https://www.bpsend.net/thread-643-1-1.html</link>
      <description><![CDATA[[md]用Python ctypes调用C++ DLL时常见的内存管理问题：1. 指针类型要用c_void_p而不是c_int，否则64位下会截断 2. 字符串参数用c_char_p会自动加null终止符，但c_char数组不会 3. 结构体定义必须和C++端完全一致，包括字段顺序和对齐 4. 回调函数要用CFUNCTYPE包装，否 ...]]></description>
      <category>Python</category>
      <author>atang100</author>
      <pubDate>Thu, 01 Oct 2026 06:00:20 +0000</pubDate>
    </item>
    <item>
      <title>Python自动化测试中处理游戏窗口焦点丢失的技巧</title>
      <link>https://www.bpsend.net/thread-639-1-1.html</link>
      <description><![CDATA[[md]用Python做游戏自动化测试时，经常遇到窗口焦点丢失导致按键发送失败的问题。分享几个解决方案：1. 使用win32gui.SetForegroundWindow强制激活窗口 2. 配合SetWindowPos调整Z序 3. 用SendInput代替keybd_event，后者在多窗口环境下不稳定 4. 设置线程桌面权限，避免 ...]]></description>
      <category>Python</category>
      <author>atang100</author>
      <pubDate>Thu, 01 Oct 2026 05:42:28 +0000</pubDate>
    </item>
    <item>
      <title>[实战教学] OpenCV + Python 实现屏幕目标实时识别</title>
      <link>https://www.bpsend.net/thread-609-1-1.html</link>
      <description><![CDATA[正文内容：各位坛友，大家在掌握了 Python 的基础控制和内存读取后，是不是想做一款更智能的脚本？现在的游戏都有防内存检测，那么“模拟人眼”的视觉自动化就是最好的选择。今天教大家使用 OpenCV 让你的 Python 脚本“看懂”游戏画面。什么是图像模板匹配 (Template M ...]]></description>
      <category>Python</category>
      <author>qnlytr22</author>
      <pubDate>Mon, 27 Apr 2026 20:44:37 +0000</pubDate>
    </item>
    <item>
      <title>[进阶教学] 拒绝硬编码：如何使用 Cheat Engine 寻找游戏数据的动态偏移</title>
      <link>https://www.bpsend.net/thread-608-1-1.html</link>
      <description><![CDATA[各位坛友，大家在上一节学习了使用 Python 读取内存后，是不是遇到了一个头疼的问题：重启游戏后，之前的内存地址就失效了？

这是因为游戏使用了\&quot;动态内存分配\&quot;。想要编写稳定且通用的辅助，我们必须学会寻找 \&quot;基址 (Base Address) + 偏移 (Offset)\&quot;，即所谓的\&quot;指针链\&quot; ...]]></description>
      <category>Python</category>
      <author>qnlytr22</author>
      <pubDate>Mon, 27 Apr 2026 20:40:00 +0000</pubDate>
    </item>
    <item>
      <title>[技术分享] Python + Pymem 读取游戏内存数据 - 简单示例</title>
      <link>https://www.bpsend.net/thread-607-1-1.html</link>
      <description><![CDATA[分享一个用Python读取游戏内存的简单方法。

说明：Pymem连接游戏进程，read_int读整数，read_float读浮点数。]]></description>
      <category>Python</category>
      <author>qnlytr22</author>
      <pubDate>Sun, 26 Apr 2026 22:43:43 +0000</pubDate>
    </item>
    <item>
      <title>使用Python编写游戏自动化脚本及自动办公05.Python循环与函数进阶</title>
      <link>https://www.bpsend.net/thread-450-1-1.html</link>
      <description><![CDATA[[md]## 课前回顾


上节课我们学习了while循环，并使用while循环替代for循环计算1到100的整数相加之和，然后又分别使用了while循环和for循环来计算水仙花数。通过使用while无限循环和循环嵌套，对猜数字游戏进行了再一次的升级改造。上节课给大家留了一道思考题：用whil ...]]></description>
      <category>Python</category>
      <author>admin</author>
      <pubDate>Sat, 29 Mar 2025 06:27:10 +0000</pubDate>
    </item>
    <item>
      <title>使用Python编写游戏自动化脚本及自动办公04.While循环</title>
      <link>https://www.bpsend.net/thread-438-1-1.html</link>
      <description><![CDATA[[md]## 课前回顾

在上一节课，我们学习了for循环、列表和字符串的定义、语法和一些常用方法。

今天课程主要内容如下：
1、学习 while 条件循环，改进猜数字游戏。
2、学习循环嵌套，打印九九乘法表。

### while循环


上堂课我们学习循环的时候讲到了Python的循环有 ...]]></description>
      <category>Python</category>
      <author>admin</author>
      <pubDate>Sun, 23 Mar 2025 04:09:32 +0000</pubDate>
    </item>
    <item>
      <title>使用Python编写游戏自动化脚本及自动办公03.for循环、列表、字符串</title>
      <link>https://www.bpsend.net/thread-417-1-1.html</link>
      <description><![CDATA[[md]# Python编程进阶拓展

## 课前回顾

在今天课程开始之前，同学们和断点社区一起回顾一下上一堂课的主要知识内容：

1. 学习了Python的数值类型(Numbers)，不同数值类型之间的转换和相关运算。
2. 学习了四类常用运算符的使用。
3. 学习了条件分支语句，并编写了一 ...]]></description>
      <category>Python</category>
      <author>admin</author>
      <pubDate>Sun, 16 Mar 2025 15:10:42 +0000</pubDate>
    </item>
    <item>
      <title>使用Python编写游戏自动化脚本及自动办公02.数值类型、运算符、条件分支</title>
      <link>https://www.bpsend.net/thread-385-1-1.html</link>
      <description><![CDATA[[md]# **数值类型**

**上一堂课我们学习了Python变量的定义不需要指定类型，让Python的变量看起来更像是名字标签，想贴哪儿就贴哪儿。通过这个标签，就可以轻易找到变量在内存中对应的存放位置。但这绝不是说Python就没有数据类型这回事儿，大家应该还记得字符串和非字 ...]]></description>
      <category>Python</category>
      <author>admin</author>
      <pubDate>Sun, 09 Mar 2025 10:27:40 +0000</pubDate>
    </item>
    <item>
      <title>使用Python编写游戏自动化脚本及自动办公01.Python编程基础</title>
      <link>https://www.bpsend.net/thread-381-1-1.html</link>
      <description><![CDATA[[md]## 一、为什么选择Python

### （一）Python简史

1989年，荷兰人Guido van Rossum（吉多—龟叔）发明了一种面向对象的解释型高级编程语言，将其命名为Python（Python单词的本义是蟒蛇） 。1991年，Python的第一个公开发行版问世。从2004年开始，Python的使用率呈线 ...]]></description>
      <category>Python</category>
      <author>admin</author>
      <pubDate>Wed, 05 Mar 2025 13:48:39 +0000</pubDate>
    </item>
  </channel>
</rss>