如何多条规则合并

遇到了问题?请先进行搜索(中文和英文),然后在此提问
lha34599
Posts: 3
Joined: 24 Jun 2018, 22:13

如何多条规则合并

25 Jun 2018, 00:16

如何将以下合并为一条?
!j::SendInput {left down}
!+j::SendInput {shift down}{left down}
!^+j::SendInput {shift down}{ctrl down}{left down}
!^j::SendInput {ctrl down}{left down}

诸如此类
aamii
Posts: 47
Joined: 23 May 2014, 03:50

Re: 如何多条规则合并

12 Jul 2018, 00:08

合并为一条代码,不行
如果是多个类似的定义组,比如j k h l之类的进行统一定义,可以试试,意义也不大,还不如直接写

Code: Select all

keyarray:={"!":"","j":"{left down}","k":"{right down}","+":"{shift down}","^":"{ctrl Down}"}
!j::
!+j::
!^+j::
!^j::
!k::
!+k::
!^+k::
!^k::
what2send:=""
loop,parse,A_ThisHotkey
	what2send .=keyarray[A_LoopField]
SendInput % what2send

Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 1 guest