方法一
$space::
to+=1
if to>3
to:=1
if (command(to)="左对齐")
MsgBox 这里实现左对齐
if (command(to)="居中")
MsgBox 这里实现居中
if (command(to)="右对齐")
MsgBox 这里实现右对齐
return
command(index){
commandstring:=["左对齐","居中","右对齐"]
return commandstring[index]
}
方法二
$down::
action:=command1()
if (action="左对齐")
MsgBox 这里实现左对齐
if (action="居中")
MsgBox 这里实现居中
if (action="右对齐")
MsgBox 这里实现右对齐
return
command1(){
static index
index+=0
index:=mod(index,3)+1
commandstring:=["左对齐","居中","右对齐"]
return commandstring[index]
}