按键精灵的颜色判断(IfColor)语句

Posted in 按键精灵

打开按键精灵脚本实验室网游自动加血网页:http://zy.anjian.com/lab/content_02.html
自动加血脚本如下,脚本需设置成不断循环:

Hpx = 685   //血条80%血量位置
Hpy = 388
TracePrint GetPixelColor(685,388)    //获取血条80%血量位置颜色
IfColor Hpx, Hpy, "D8D8D8", 0 Then    //如果血量低于80%,就按Q键加血
	KeyPress "Q",1	  
End If
Delay 200

Enjoy this article?

Consider subscribing to our RSS feed!


You can leave a response below, or trackback from your own site.

0 ResponsesLeave a comment ?

Leave a Reply