如何使用 ADB 和 PYautogui 在 python 中使用 USSD 代码

问题描述 投票:0回答:0

我使用了 ADB 和 pyautogui,但是当我运行代码时,它会打开电话应用程序并呼叫包含 USSD 代码的号码,而不是将其用作代码。此外,当呼叫接通时,数字末尾的哈希符号 (#) 不会出现,即使我在 Python 中添加了它。请问有什么解决方法或帮助吗?我是 Python 的初学者。谢谢。

我想使用 Python 使用 USSD 代码。 我的代码:

phone_number = "*133*" + str(random.randint(100, 999)) + "#"

pyautogui.typewrite(f"adb shell am start -a android.intent.action.CALL -d tel:{phone_number}")
python python-3.x adb pyautogui
© www.soinside.com 2019 - 2024. All rights reserved.