仙轮火剑卡刀

内容来自贴吧

比如怎么实现:剑灵火系剑士的一键输出,有TAB的时候可以一直按右键,
右键CD了打4下拔刀在继续火龙直到TAB技能好了为止该如何编写
RButton:: 右键
Loop 循环
{
GetKeyState,State,RButton,P
If (State=”U”) ;
{
if (满足条件一}比如火龙的取色亮着的{
XXXXX 一直打火龙
}else 黑色的CD火龙??
{xxxxxx执行拔剑,但是怎么让他拔剑4下呢?3下拔剑右键的火龙就好了
}}}Return
或者有更高级的写法(满足条件一 且 不满足条件二)?小白求助了!

 大神回复代码

#IfWinActive ahk_class LaunchUnrealUWindowsClient
RButton:: ;RButton鼠标右 LButton鼠标左
	SetTimer, pressA, 0
return
pressA:
	if ( GetColor(282,230)=="0x00B9FE" )
	{
		SendInput,tt
	}
	else
		SendInput,r
	if ( GetColor(869,632)=="0x273839" ) ;(火龙闪)
	{
		SendInput,f
	}
	if ( GetColor(669,849)=="0xBAB169" ) ;(取色 位置:Z键12:00-12:多一点 山崩)
	{
		SendInput,z
	}
	if ( GetColor(791,777)=="0xF6E2A8" ) ;(取色 位置:4键12:00-12:多一点)
	{
		SendInput,4
	}
	SendInput,{Tab}
return
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
	PixelGetColor, color, x, y, RGB
	StringRight color,color,10
	return color
}
RButton up::
SetTimer, pressA, Off
return
LButton::
	SetTimer, pressA, Off
	SetTimer, pressB, 0
pressB:
	SendInput,r
	if ( GetColor(869,632)=="0x273839" ) ;(火龙闪 6点)
	{
		SendInput,f
	}
	if ( GetColor(671,839)=="0x564E4C" ) ;(Z键山崩 6点)
	{
		SendInput,z
	}
	if ( GetColor(789,778)=="0xF8F7BA" ) ;(4键)
	{
		SendInput,4
	}
return
LButton up::
SetTimer, pressB, Off
return
MButton::
	loop
	{
		GetKeyState,State,MButton,P
		if (State="U") ;
		{
			break
		}
		Send ss
		Send ss
		Sleep 10
	}
return
[::
	Suspend
return

 

给TA捐赠
共{{data.count}}人
人已捐赠
其他应用

AHK 完成 两个游戏窗口同时按键,游戏多开使用

2018-9-5 9:00:02

其他应用

说说我怎么利用 AutoHotKey 帮助家里老人登录 QQ 游戏大厅的

2018-10-21 16:20:23

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
有新私信 私信列表
搜索