您可能知道,通过adb调用的命令是:
.\adb.exe shell am start -a android.intent.action.CALL tel:"656565"
这很好用但是当我使用文本框时,它需要垃圾值......
.\adb.exe shell am start -a android.intent.action.CALL tel:$textbox1.Text
我也试过这个但是失败了
$button21_Click={
#TODO: Place custom script here
$textbox1.Clear
.\adb.exe shell am start -a android.intent.action.CALL tel:$textbox1.Text
}
请帮忙
答案 0 :(得分:3)
老实说,你的问题仍然有点不清楚,但你可以尝试这样的东西来捕获变量中的值,然后使用它:
$button21_Click = {
$tel = "tel:" + '"' + $textbox1.Text + '"'
$textbox1.Clear()
.\adb.exe shell am start -a android.intent.action.CALL $tel
}