https://zi-yan.lanzouo.com/i89e325d1fhe
https://zi-yan.lanzoui.com/i89e325d1fhe
字体文件:
https://zi-yan.lanzouo.com/i3SeM2gttqdg
密码:gxrt
与.py放同目录
[color=]自己研究的Python阳光反增awa
[] 纯文本查看 复制代码# 游戏主循环
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
elif event.type == pygame.MOUSEBUTTONDOWN:
# 检查鼠标是否点击在开启按钮上
if button_open.collidepoint(event.pos):
pid = get_process_pid("PlantsVsZombies.exe")
address = c_void_p(0x0041BA74) # 目标内存地址
data = b'\x01\xDE' # 要写入的字节数据
process_handle = open_process(pid)
if process_handle:
success, bytes_written = write_process_memory(process_handle, address, data)
if success:
print("修改完成")
is_open = True
else:
print("Failed to write to memory")
close_handle(process_handle)