0

As you may know, the command for calling via adb is:

.\adb.exe shell am start -a android.intent.action.CALL tel:"656565"

This works well but when I use textbox, it takes garbage value...

.\adb.exe shell am start -a android.intent.action.CALL tel:$textbox1.Text

I have tried this also but failed

$button21_Click={
#TODO: Place custom script here

$textbox1.Clear
.\adb.exe shell am start -a android.intent.action.CALL tel:$textbox1.Text
}

Please help

4

1 回答 1

3

老实说,您的问题仍然有点不清楚,但是您可以尝试这样的方法来捕获变量中的值,然后使用它:

$button21_Click = {
  $tel = "tel:" + '"' + $textbox1.Text + '"'
  $textbox1.Clear()
  .\adb.exe shell am start -a android.intent.action.CALL $tel
}
于 2013-06-27T19:25:00.063 回答