按键精灵如何实现跳到指定的某行运行?

如题所述

Rem s1
Delay 500
GetColor=Plugin.Bkgnd.GetPixelColor(hwnd,230,268)
Call Plugin.Color.ColorToRGB(GetColor, R, G, B)
If R =47 and G =224 and B =102 Then
Delay 500
Goto s2
End If
Delay 500
Goto s1
Rem s2

代码能看懂吧?判断x=230y=268这个点,如果R =47 and G =224 and B =102,就跳到标记s2,如果不等于的话一直到End If都没有用,开始运行下面的Delay 500,然后调到标记S1,到标记S1后开始重新判断,直到达到你的要求跳到S2,至于你说的第8行代码,你可以加在Rem s2的下面,说的够啰嗦了,希望你能明白
温馨提示:答案为网友推荐,仅供参考
相似回答