guojiehu 发表于 2012-2-7 09:35:17

锁定一个内存基址值,能不能不用循环?

感觉循环的方式挺消耗CPU的,有没有更好的方法,各位大大给个方案,谢谢各位大大!目前使用的是
While 1
_MemoryWrite("0x" & Hex($HP1+$Off_Hp1), $Handle,"1")
_MemoryWrite("0x" & Hex($HP1+$Off_Hp2), $Handle,"1")
_MemoryWrite("0x" & Hex($HP1+$Off_Hp3), $Handle,"1")
_MemoryWrite("0x" & Hex($HP1+$Off_Hp4), $Handle,"1")
_MemoryWrite("0x" & Hex($HP1+$Off_Hp5), $Handle,"1")
_MemoryWrite("0x" & Hex($HP1+$Off_Hp6), $Handle,"1")
Sleep(200)
WEnd

user3000 发表于 2012-2-8 02:35:55

这问题问得....有点弱智了吧?
既然是锁定, 你觉得有可能不用循环就能做到吗?
页: [1]
查看完整版本: 锁定一个内存基址值,能不能不用循环?