事件
# onBroadcastEvent
event.onBroadcastEvent(function(msg){
printl(msg)
})
# onClickEvent
event.onClickEvent(function(node,x,y){
printl(x+","+y)
})
# onHotfixFinish
event.onHotfixFinish(function(success){
printl(success)
})
# onNotificationEvent
event.onNotificationEvent(function(notification){
printl(notification.getTitle())
printl(notification.getText())
notification.open()
})
# onOpenBtnEvent
event.onOpenBtnEvent(function(){
printl('停止按钮')
})
# onStopBtnEvent
event.onStopBtnEvent(function(){
printl('停止按钮')
})
# onStopEvent
event.onStopEvent(function(){
printl('脚本停止')
})
# onToastEvent
event.onToastEvent(function(msg){
printl(msg)
})
# onVoiceUpEvent
event.onVoiceUpEvent(function(){
printl('按下音量+')
})
# onVoiceDownEvent
event.onVoiceDownEvent(function(){
printl('按下音量-')
})
# event.sendBroadcast('com.aiwork.autoapp','hello')
event.sendBroadcast('com.aiwork.autoapp','hello')
上次更新: 2024/11/05, 13:43:57