if service.isEditView(node) then
--local txt=node.text
--if txt and txt~="" and utf8.sub(txt,-1,-1)~="，" and not node.isShowingHintText()
--service.insert(node,"，")
--end
service.execute("语音输入",node)
elseif service.isSeekBar(node)
service.click({{"%主菜单$50",
"进度"}})
elseif service.isInCalling()
service.acceptCall()
elseif service.isRinging()
require "import"
import "android.media.AudioManager"
import "android.content.Context"
import "com.androlua.Ticker"
context = activity or service
audioManager = context.getSystemService(Context.AUDIO_SERVICE)
local currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_RING)
local maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_RING)
local targetVolume = math.floor(maxVolume * 0.8)  -- 80% 音量
audioManager.setStreamVolume(AudioManager.STREAM_RING, 4, 0)
service.asyncSpeak("降低铃声")
ti=Ticker()
ti.Period=10000
ti.onTick=function()
if not service.isInCalling()
audioManager.setStreamVolume(AudioManager.STREAM_RING,12 , 0)
ti.stop()
ti=nil
service.asyncSpeak("铃声恢复")
end
end
ti.start()

elseif service.isInWebView(node) or not node.isLongClickable()
service.execute("模拟点击",node)
else
service.click({{
"%长按",
}})
end
return true