发布网友 发布时间:2022-04-25 14:38
共1个回答
热心网友 时间:2023-10-09 12:05
别的都没改动,只是让二个号彼此不受影响.只对一个窗口发送
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#SingleInstance Ignore
#Persistent
SetTitleMatchMode,2
#ErrorStdOut
title:="魔兽世界"
WinWait % title
WinGet,hwnd,ID,% title
var:=0
Return
F6::
if var=0
{
var:=1
SetTimer key_q,300
SetTimer key_z,% 3*60000
SetTimer key_tab,600
}
Else
{
var:=0
SetTimer key_q,off
SetTimer key_z,off
SetTimer key_tab,off
}
Return
key_q:
ControlSend,,q,% "ahk_id" . hwnd
Return
key_z:
SetTimer key_q,off
ControlSend,,z,% "ahk_id" . hwnd
SetTimer key_q,300
Return
key_tab:
ControlSend,,{TAB},% "ahk_id" . hwnd
Return来自:求助得到的回答