更新时间:2023-12-05 21:02:10
这工作对我来说,虽然还没有试过设置Exchange帐户:
This worked for me, though haven't tried setting a Exchange account:
fieldLength = 50
# select all the chars
self.device.press('KEYCODE_SHIFT_LEFT', MonkeyDevice.DOWN)
for i in range(fieldLength):
self.device.press('KEYCODE_DPAD_LEFT', MonkeyDevice.DOWN_AND_UP)
MonkeyRunner.sleep(1)
self.device.press('KEYCODE_SHIFT_LEFT', MonkeyDevice.UP)
# delete them
self.device.press('KEYCODE_DEL', MonkeyDevice.DOWN_AND_UP)