安卓按键精灵脚本命令-多选框被单选中则对应选择一个执行脚本

有三个多选框 和三个脚本, 要单独对应该 如何做呢? 多选框 和脚本都有了

Function a
UIP.SetAttribute "多选框2", {"选中":false}
UIP.SetAttribute "多选框3", {"选中":false}
End Function

Function b
UIP.SetAttribute "多选框1", {"选中":false}
UIP.SetAttribute "多选框3", {"选中":false}
End Function

Function c
UIP.SetAttribute "多选框1", {"选中":false}
UIP.SetAttribute "多选框2", {"选中":false}
End Function




If ReadUIConfig("多选框1") Then 

    //运行脚本1

    ElseIf ReadUIConfig("多选框2") Then

    //运行脚本2

    ElseIf ReadUIConfig("多选框3") Then

    //运行脚本3

    Else 

    //没有选中任何一个

    

End If

 

赞 (0)