#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent ;保持后台运行
#SingleInstance FORCE ;单实例运行模式
SetBatchLines -1
array1:=["a","b","c","d"]
test=
return
^S::
loop , % array1._maxindex()
{
if (mod(a_index,2)=0)
{
tmp1 :=array1[a_index]
array1[a_index] :=array1[a_index-1]
array1[a_index-1] :=tmp1
test.=array1[a_index-1] . array1[a_index]
}
}
MsgBox % test
Return
暂无讨论,说说你的看法吧