请教高手魔兽世界用AUTOHOTKEY双开猎人号

来源:百度知道 编辑:UC知道 时间:2024/06/01 01:50:57
网上有双开脚本,但是抽筋宏得自己一下下的按太累了,希望高手能给个自动的。

能用的我可以再多追加分
大家看清楚,我要的不是魔兽宏,抽筋宏NGA上到处都是!是AUTOHOTKEY的双开脚本。例如在双开的情况下我按下F6键,则2个号同时并且持续的使用抽筋宏,直到我放开F6键才会停下抽筋宏。

爱靓_而已给的脚本似乎不能同时用于2个号

同志们,弄不清楚AUTOHOTKEY是啥的就不要误导人了,本人双开带小号一直是AUTOHOTKEY+AUTOMACRO,当然这是AM还能使用的时候,脚本如下(分号后的是注释,可无视,此脚本异常强大,按一下触发键它就不停发送命令,切换窗口也无影响,彻底解放双手,可用两只手与朋友聊天吹牛、写文案、吃泡面、挖鼻孔(不推荐)):

#MaxThreadsPerHotkey 3
$3:: ; 3是触发这个脚本的热键,改成其它也可以
#MaxThreadsPerHotkey 1

if KeepWinZRunning = y ; This means an underlying thread is already running the loop below.
{
KeepWinZRunning = ; Make it blank to signal that thread's loop to stop.
return ; End this thread so that the one underneath will resume and see the change.
}
; Otherwise:
KeepWinZRunning = y
Loop,
{

ControlSend ,,{3},魔兽世界,,, ; 这个是指定发送3键(我放抽筋宏的地方)到魔兽世界这个窗口,逗号一个都不能少
Sleep, 100 ; 单位是ms.Sleep, 100就是0.1秒按一次

if KeepWinZRunning = ; The user signaled the loop to stop by pressing Win-Z again.
break ; Break out of this loop.
}

KeepWinZRunning = ; Reset in preparation for the next press of this hotkey.
return

小心点用 小心被封号