按键精灵读内存代码运行后cpu100%,如何优化
来源:百度知道 编辑:UC知道 时间:2024/06/25 19:22:45
VBS dim qiu,hz
Plugin hz=Window.Foreground()
Plugin qiu=Memory.ReadSingle(hz,&H08FE5E5C)
MessageBox ""&cint(qiu)&""
VBS qiu=""&cint(qiu)&""
Rem 开始
Plugin hz=Window.Foreground()
Plugin qiu=Memory.ReadSingle(hz,&H08FE5E5C)
If qiu>=100
Delay 500
KeyPress 51,3
Delay 5000
EndIf
Goto 开始
上面这段代码是用按键精灵读取一个游戏内存信息的代码,当读取到的信息大于或等于100的时候就按键盘上的3键,功能是实现了,但运行起来cpu就100%,非常占用cpu使用率,有什么办法优化吗?谢谢了
Plugin hz=Window.Foreground()
Plugin qiu=Memory.ReadSingle(hz,&H08FE5E5C)
MessageBox ""&cint(qiu)&""
VBS qiu=""&cint(qiu)&""
Rem 开始
Plugin hz=Window.Foreground()
Plugin qiu=Memory.ReadSingle(hz,&H08FE5E5C)
If qiu>=100
Delay 500
KeyPress 51,3
Delay 5000
EndIf
Goto 开始
上面这段代码是用按键精灵读取一个游戏内存信息的代码,当读取到的信息大于或等于100的时候就按键盘上的3键,功能是实现了,但运行起来cpu就100%,非常占用cpu使用率,有什么办法优化吗?谢谢了
If qiu>=100
Delay 500
KeyPress 51,3
Delay 5000
EndIf
Delay 5 //要加一点延时
Goto 开始
****************
或者
If qiu>=100
Delay 500
KeyPress 51,3
Delay 5000
else
Delay 5 //加个else,如果读不到,延迟一下
EndIf
Goto 开始
按键精灵、是什么啊
没用过啊