1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.fa/android/input.md
mortalpuppet 39cea3c17d
2to3, 7za, 7zr, [, [[, android/*: add Farsi Translation; 7z: update Farsi Translation (#10603)
* 2to3, 7za, 7zr, [, [[, android/*: add Farsi Translation; 7z: update Farsi Translation

---------

Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-09-14 21:01:28 +05:30

25 lines
1 KiB
Markdown

# input
> ارسال کد رویداد یا ورودی صفحه نمایش به یک دستگاه اندروید.
> این دستور فقط از طریق `adb shell` قابل اجراست.
> اطلاعات بیشتر: <https://developer.android.com/reference/android/view/KeyEvent.html#constants_1>.
- ارسال کد رویداد یک کاراکتر به یک دستگاه اندروید :
`input keyevent {{event_code}}`
- ارسال یک متن به یک دستگاه اندروید (`%s` نمایانگر فاصله است) :
`input text "{{متن}}"`
- ارسال یک ضربه به یک دستگاه اندروید :
`input tap {{x_position}} {{y_position}}`
- ارسال حرکت افقی عمودی به یک دستگاه اندروید :
`input swipe {{x_start}} {{y_start}} {{x_end}} {{y_end}} {{duration_in_ms}}`
- ارسال یک نگهداشتن بلند مدت به یک دستگاه اندرویدی از طریق حرکت افقی عمودی :
`input swipe {{x_position}} {{y_position}} {{x_position}} {{y_position}} {{duration_in_ms}}`